Code

Fixed save_object behavior for servService
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Feb 2006 10:04:02 +0000 (10:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Feb 2006 10:04:02 +0000 (10:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2703 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servService.inc

index 4871be46fb1e50ef9ea39ab613ff76b9306a35b2..b3411bdf705f1131c429be4f59899d2b95d7e03d 100644 (file)
@@ -226,10 +226,11 @@ class servservice extends plugin
   function save_object()
   {
     if (isset($_POST['servicetab'])){
-      plugin::save_object();
-
+      $tmp = $this->goTimeSource;
+    
       /* Save checkbox state */
       foreach ($this->additionaloc as $oc => $dummy){
+        if($oc == "goNtpServer") continue;
         if (chkacl($this->acl, $oc) == ""){
           if (isset($_POST[$oc]) && $_POST[$oc] == '1'){
             $this->objectclasses[$oc]= $oc;
@@ -252,6 +253,8 @@ class servservice extends plugin
       } else {
         $this->goShareServer = false;
       }
+      $this->goTimeSource = array();
+      $this->goTimeSource = $tmp;
     }
   }