Code

Updated Inherit everthing for terminals
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jul 2007 09:16:47 +0000 (09:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 12 Jul 2007 09:16:47 +0000 (09:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6845 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_terminalGeneric.inc
plugins/admin/systems/terminal.tpl
plugins/admin/systems/workstation.tpl

index 5a9f52357e450a8afc5acdb9c24874c07f9759b9..598e4fbd458661620d032c2ceb3cde3c37e12922 100644 (file)
@@ -357,10 +357,6 @@ class termgeneric extends plugin
     plugin::save_object();
     $this->netConfigDNS->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'];
@@ -379,6 +375,11 @@ class termgeneric extends plugin
         $this->inheritTimeServer = false;
       }
     }  
+
+    if(isset($_POST["inheritAll"])){
+      $this->set_everything_to_inherited();
+    }
+
   }
 
 
@@ -524,6 +525,11 @@ class termgeneric extends plugin
 
   function set_everything_to_inherited()
   {
+    $this->gotoTerminalPath  = "default";
+    $this->gotoSwapServer    = "default" ;
+    $this->gotoSyslogServer  = "default";
+    $this->inheritTimeServer = TRUE;
+
     /* Set workstation service attributes to inherited */
     if($this->member_of_ogroup && isset($this->parent->by_object['termservice'])){
       foreach(array("gotoXKbLayout","gotoXKbModel","gotoXKbVariant",
index 60b4cb32ca159d4cc27b42bcc52f311b0a134bcc..0444840f370c3449923ce68da57d01f57e0fb8a7 100644 (file)
@@ -29,7 +29,6 @@
 {if $member_of_ogroup}
    <tr>
           <td>
-                  {t}Inheritance{/t}
           </td>
           <td>
                        <input type='submit' name='inheritAll' value='{t}Inherit all{/t}'>
index 0a8f0fd06b5eef39f84fdefb1e58376b426c240d..bbed6b5c770b9b68ddcb4c0104fc88e8be38d2d3 100644 (file)
@@ -34,7 +34,6 @@
 {if $member_of_ogroup}
        <tr>
                <td>
-                       {t}Inheritance{/t}
                </td>
                <td>
        <input type='submit' name='inheritAll' value='{t}Inherit all{/t}'>