Code

Updated workstation inherit funktion to include generic settings;
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jul 2007 09:33:50 +0000 (09:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jul 2007 09:33:50 +0000 (09:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6846 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_workstationGeneric.inc

index 42029b61323b95cd24544e5772370e5b47ad14cd..5863ed5f41c22654c80f5294cffe02b261b3c7f6 100644 (file)
@@ -328,10 +328,6 @@ class workgeneric extends plugin
   {
     plugin::save_object();
 
-    if(isset($_POST["inheritAll"])){
-      $this->set_everything_to_inherited();
-    }
-
     /* Save base, since this is no LDAP attribute */
     if (isset($_POST['base']) && chkacl($this->acl, "create") == ""){
       $this->base= $_POST['base'];
@@ -346,6 +342,10 @@ class workgeneric extends plugin
         $this->inheritTimeServer = false;
       }
     }
+
+    if(isset($_POST["inheritAll"])){
+      $this->set_everything_to_inherited();
+    }
   }
 
 
@@ -498,6 +498,9 @@ class workgeneric extends plugin
 
   function set_everything_to_inherited()
   {
+    $this->gotoSyslogServer  = "default";
+    $this->inheritTimeServer = TRUE;
+
     /* Set workstation service attributes to inherited */
     if($this->member_of_ogroup && isset($this->parent->by_object['workservice'])){
       foreach(array("gotoXKbLayout","gotoXKbModel","gotoXKbVariant",