From: hickert Date: Fri, 11 Apr 2008 09:57:27 +0000 (+0000) Subject: Updated profile save X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3565453515e8c626e4be8ae6223f83c4d49dc100;p=gosa.git Updated profile save git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/gosa-plugins/fai/admin/fai/class_faiProfile.inc index 8e98c7241..6307a268f 100644 --- a/gosa-plugins/fai/admin/fai/class_faiProfile.inc +++ b/gosa-plugins/fai/admin/fai/class_faiProfile.inc @@ -432,7 +432,7 @@ class faiProfile extends plugin /* Remove the old FAI profile, if the dn has changed. */ - if($this->cn != $this->old_cn && !$this->is_new){ + if($this->cn != $this->old_cn && $this->old_cn != ""){ $old_dn = preg_replace("/^cn=[^,]+,/","cn=".$this->old_cn.",",$this->dn); FAI::prepare_to_save_FAI_object($old_dn,array(),TRUE);