Code

Fixed saving for existing entries
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 10:23:59 +0000 (10:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 11 Apr 2008 10:23:59 +0000 (10:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10354 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_FAI.inc
gosa-plugins/fai/admin/fai/class_faiHook.inc
gosa-plugins/fai/admin/fai/class_faiPackage.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiScript.inc
gosa-plugins/fai/admin/fai/class_faiTemplate.inc
gosa-plugins/fai/admin/fai/class_faiVariable.inc

index 1fef153b638bc87723acf6a0508d7f0c0725b73e..fc4f5c1856782abe00568e3f643b0306b0e3a8f2 100644 (file)
@@ -170,7 +170,9 @@ class FAI
       /* Dont't try to modify non FAIclasses  
        */
       if(!preg_match("/[^,]+,".normalizePreg(get_ou("faiou"))."/",$obj_dn)){
-        echo "PLEASE check fai class handling in ".__LINE__." -> ".__FILE__;        
+        trigger_error("PLEASE check fai class handling in ".__LINE__." -> ".__FILE__);        
+        echo "<br>-->".$Current_DN."<br>";
+        echo "<br>-->".$obj_dn."<br>";
       }else{
 
         /* Get source object and check if it is a base FAIclass
index 84964327618141c13c91b3b185440ccba491c85c..74628205777042b7841d9f0bd0dee2009d009451 100644 (file)
@@ -79,6 +79,10 @@ class faiHook extends plugin
         $this->SubObjects[$objects['cn']] = $objects;
       }
     }
+    $this->is_new = FALSE;
+    if($this->dn == "new"){
+      $this->is_new =TRUE;
+    }
     $this->ui = get_userinfo();
   }
 
index fe7989ea1eb37c2f9fdecf7c278b2772bee4d0e9..a44ffd345eda5417281bd3976a99ea756b0ef04e 100644 (file)
@@ -158,6 +158,10 @@ class faiPackage extends plugin
     if ($this->dn != "new"){
       $this->newDialogShown= true;
     }
+    $this->is_new = FALSE;
+    if($this->dn == "new"){
+      $this->is_new =TRUE;
+    }
   }
 
 
index a3ed119a810ced7d84bb71f15579650af1160b0c..c721a8ed73eb40ff52052423d4f83d480cc9a92a 100644 (file)
@@ -96,6 +96,10 @@ class faiPartitionTable extends plugin
         }  
       }
     }
+    $this->is_new = FALSE;
+    if($this->dn == "new"){
+      $this->is_new =TRUE;
+    }
     ksort($this->disks);
   }
 
index d94b760c24e9e159ac6dd1b6182422f7117eab56..c94c49d5895e88ffd40c1658a70c31632c30057b 100644 (file)
@@ -86,6 +86,12 @@ class faiScript extends plugin
       }
     
     }
+
+    $this->is_new = FALSE;
+    if($this->dn == "new"){
+      $this->is_new =TRUE;
+    }
     $this->ui = get_userinfo();
   }
 
index ab20b94bb06c5cba7d87f0b6519ca1a8101dd0b3..018d8596c37467c85291ac4c021bc9f52e685882 100644 (file)
@@ -82,6 +82,10 @@ class faiTemplate extends plugin
         $this->SubObjects[$objects['cn']] = $objects;
       }
     }
+    $this->is_new = FALSE;
+    if($this->dn == "new"){
+      $this->is_new =TRUE;
+    }
     $this->ui = get_userinfo();
   }
 
index 21722813e27da2251466ec79351338e6a802727c..af021e7df6f56bf174515bf4b28220171991bdb9 100644 (file)
@@ -82,6 +82,10 @@ class faiVariable extends plugin
       }
 
     }
+    $this->is_new = FALSE;
+    if($this->dn == "new"){
+      $this->is_new =TRUE;
+    }
     $this->ui = get_userinfo();
   }