From 365a395b0d37a0d148687dfd4ad063d4825af815 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Aug 2008 07:33:51 +0000 Subject: [PATCH] Updated FaiVariable saving -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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiVariable.inc b/gosa-plugins/fai/admin/fai/class_faiVariable.inc index 90937cd97..bf49ff538 100644 --- a/gosa-plugins/fai/admin/fai/class_faiVariable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiVariable.inc @@ -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){ -- 2.30.2