Code

Updated workstation - Startup
[gosa.git] / plugins / admin / systems / class_servRepositorySetup.inc
index 3ed15dfab94241b51f7085c9bad3784380a61024..40f37b0628acca88f431cc89042a7e16b31cdcf2 100644 (file)
@@ -22,7 +22,7 @@ class servRepositorySetup  extends plugin
   var $cn               = "";
   var $parent           = "";
 
-  function servRepositorySetup ($config, $dn= NULL,$data = false)
+  function servRepositorySetup (&$config, $dn= NULL,$data = false)
   {
     plugin::plugin ($config, $dn);
     if($data != false){
@@ -128,8 +128,15 @@ class servRepositorySetup  extends plugin
 
   /* Save data to object */
   function save_object()
-  { 
-    plugin::save_object();
+  {
+    if(isset($_POST['servRepositorySetup_Posted'])) {
+  
+      foreach($this->attributes as $attr){
+        if(($this->parent->acl_is_writeable($attr)) && (isset($_POST[$attr]))){
+          $this->$attr = $_POST[$attr];      
+        }
+      }
+    }
   }
 
 
@@ -186,7 +193,7 @@ class servRepositorySetup  extends plugin
   function GetHookElements()
   {
     $ret = array();
-    $cmd= search_config($this->config->data['TABS'], "servrepository", "REPOSITORY_HOOK");
+    $cmd = $this->config->search("servrepository", "REPOSITORY_HOOK",array('tabs'));
     if(!empty($cmd)){
       $res = shell_exec($cmd);
       $res2 = trim($res);