Code

Updated FaiVariable saving
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Aug 2008 07:33:51 +0000 (07:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Aug 2008 07:33:51 +0000 (07:33 +0000)
-Remove deleted variable entries from ldap

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12185 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 90937cd97d00f683bc43440bf16315659948d7d5..bf49ff538a6d5f9a01e7401014da0479da04dd9b 100644 (file)
@@ -128,7 +128,7 @@ class faiVariable extends plugin
         $c_dn = $this->acl_base_for_current_object($this->SubObjects[$var]['dn']);
         $acl = $this->ui->get_permissions($c_dn,"fai/faiVariable");
         if(preg_match("/d/",$acl)){
-          if($this->SubObjects[$var]['status'] == "edited"){
+          if($this->SubObjects[$var]['status'] != "new"){
             $this->SubObjects[$var]['status']= "delete";
           }else{
             unset($this->SubObjects[$var]);
@@ -334,11 +334,6 @@ class faiVariable extends plugin
         $Objects[$name] = $obj; 
       }
     }
-    foreach($this->SubObjects as $name => $obj){
-      if($obj['status'] != "delete"){
-        $Objects[$name] = $obj; 
-      }
-    }
 
     foreach($Objects as $name => $obj){