From: hickert Date: Fri, 11 Apr 2008 09:54:24 +0000 (+0000) Subject: Update copy & paste for FAIprofile X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f70182676d12af40bdd6a970b8f3f753b18eb21c;p=gosa.git Update copy & paste for FAIprofile git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10352 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 c5daa10a7..8e98c7241 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){ + if($this->cn != $this->old_cn && !$this->is_new){ $old_dn = preg_replace("/^cn=[^,]+,/","cn=".$this->old_cn.",",$this->dn); FAI::prepare_to_save_FAI_object($old_dn,array(),TRUE);