Code

Update copy & paste for FAIprofile
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 09:54:24 +0000 (09:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 09:54:24 +0000 (09:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10352 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiProfile.inc

index c5daa10a7a6566b347e0e5b1673425e2e72ab7cd..8e98c72413ba5d19dc4fa71fe094c04940014ca0 100644 (file)
@@ -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);