Code

Apply patch from mba for #4146
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 May 2010 08:31:16 +0000 (08:31 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 20 May 2010 08:31:16 +0000 (08:31 +0000)
- Never set InheritXYSync for new objects
- Never disable display properties in object groups

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@18566 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/admin/systems/goto/class_workstationService.inc

index f42eb7dbd1fabc9f33a204290ba549072476ac21..bf30f119f689b264ef3adbffe77ef2da44c879b9 100644 (file)
@@ -192,6 +192,10 @@ class workservice extends plugin
         if(!empty($this->attrs['gotoXHsync'][0]) && !empty($this->attrs['gotoXVsync'][0])) {
         $this->InheritXYSync = FALSE;
        }
+    } else {
+        if($this->dn == "new") {
+          $this->InheritXYSync = FALSE;
+        }
     }
 
     /* Workaround to fill in inherited values if we've specified an objectclass */
@@ -325,7 +329,7 @@ class workservice extends plugin
       $smarty->assign("AutoSyncCHK"," ");
       $smarty->assign("hiddenState","");
     }
-    if($this->InheritXYSync) {
+    if($this->InheritXYSync && !isset($this->parent->by_object['ogroup'])) {
       $smarty->assign("InheritXYSync", " checked ");
       $smarty->assign("hiddenState", " disabled ");
       $smarty->assign("AutoSynchiddenState", " disabled ");