Code

Update sudo option add
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Apr 2008 06:28:52 +0000 (06:28 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 4 Apr 2008 06:28:52 +0000 (06:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10184 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/sudo/class_sudoOptions.inc
gosa-core/plugins/admin/sudo/tabs_sudo.inc

index 43a39b140b8c1e81e54fdb36602168628bafca71..7cb9fbebbae6d26933b347760961e0977c6167a9 100644 (file)
@@ -306,9 +306,7 @@ class sudoOption extends plugin
         }else{
           $this->sudoOption[$opt] = $option;
         }
-      }
-
-      if(isset($this->options[$opt]) && isset($this->sudoOption[$opt]) && $this->options[$opt]['TYPE'] == "LISTS"){
+      }elseif(isset($this->options[$opt]) && isset($this->sudoOption[$opt]) && $this->options[$opt]['TYPE'] == "LISTS"){
         $type = $this->options[$opt]['TYPE'];
         $val  = array($this->options[$opt]['DEFAULT']);
         $option = array("NAME" => $opt, "VALUE" => $val , "NEGATE" => FALSE);
index a1265c4911525796eb1dfff331d8f541887e0983..0e0c1267c6e8a7e16497419ad3bacc44b3e80d15 100644 (file)
@@ -28,11 +28,6 @@ class sudotabs extends tabs
     $this->addSpecialTabs();
   }
 
-  function save_object($save_current= FALSE)
-  {
-    tabs::save_object($save_current);
-  }
-
   function save($ignore_account= FALSE)
   {
     $baseobject= $this->by_object['sudo'];