Code

Fixed netconf for first time calls
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 13:53:49 +0000 (13:53 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Dec 2006 13:53:49 +0000 (13:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5343 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_componentGeneric.inc
plugins/admin/systems/class_phoneGeneric.inc
plugins/admin/systems/class_printGeneric.inc
plugins/admin/systems/class_servGeneric.inc
plugins/admin/systems/class_terminalGeneric.inc
plugins/admin/systems/class_winGeneric.inc
plugins/admin/systems/class_workstationGeneric.inc

index 46821aa95044e6709bc290495296cde06db62f4c..b0bb33486321b8056f09c42da943d62a71fe368c 100644 (file)
@@ -89,6 +89,7 @@ class componentGeneric extends plugin
     $smarty->assign("baseACL", chkacl($this->acl,"base"));
 
     /* Show main page */
+    $this->netConfigDNS->cn= $this->cn;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
     return($smarty->fetch (get_template_path('component.tpl', TRUE)));
   }
index 76718175b7e3a42f7933ce8ac1d0bf54b27b05e3..3fc6e9fc0df246b6eb3b323c7f5dab7cfadbc52e 100644 (file)
@@ -225,6 +225,7 @@ class phoneGeneric extends plugin
     $smarty->assign("goFonDefaultIPs",array("dynamic"=>_("dynamic"),"network"=>_("Networksettings")));
  
     /* Show main page */
+    $this->netConfigDNS->cn= $this->cn;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
     $smarty->assign("phonesettings", dirname(__FILE__)."/phonesettings.tpl");
     return($smarty->fetch (get_template_path('phone.tpl', TRUE)));
index 18a936bbf47345835d89e708adf7052ea0e7901a..b74997283622c4bd489ae6f5a2941e86236a4529 100644 (file)
@@ -525,6 +525,7 @@ class printgeneric extends plugin
     $smarty->assign("AdminMembers"   ,$adminlist);
     $smarty->assign("AdminMemberKeys",array_flip($adminlist));
     if($this->BelongsTo == "Printer"){
+      $this->netConfigDNS->cn= $this->cn;
       $smarty->assign("netconfig", $this->netConfigDNS->execute());
     } else {
       $smarty->assign("netconfig", "");
index d84794ebd4b042262fc88884c1436e5e8070a22a..af9812c9e9f0e6af26e599b5e64a235cc43b3c33 100644 (file)
@@ -174,6 +174,7 @@ class servgeneric extends plugin
     }
 
     /* Show main page */
+    $this->netConfigDNS->cn= $this->cn;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
     $smarty->assign("modes", $this->modes);
 
index 282693b3bd809aa222fadd9c7df6dbfc15ca854b..88bbce350f83baa121c3c2c556088fb3aa7d924a 100644 (file)
@@ -297,6 +297,7 @@ class termgeneric extends plugin
     }
 
     /* Show main page */
+    $this->netConfigDNS->cn= $this->cn;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
     $smarty->assign("actionACL", chkacl($this->acl, 'action'));
     return($smarty->fetch (get_template_path('terminal.tpl', TRUE)));
index fc0191a72fd502cea2a2735a87e62dd6f55f9571..e297a4c73c82e0c30d910627bcd0d4d1a6a1e483 100644 (file)
@@ -114,6 +114,7 @@ class wingeneric extends plugin
     $smarty->assign("base_select", $this->base);
 
     /* Show main page */
+    $this->netConfigDNS->cn= $this->cn;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
     return($smarty->fetch (get_template_path('wingeneric.tpl', TRUE)));
   }
index 1d7d556597cf7e00c1389f4dda700d4fcdac3f79..3ba74d927d0f606eca2cb1d45650edfea80a66b9 100644 (file)
@@ -267,6 +267,7 @@ class workgeneric extends plugin
     $smarty->assign("inheritTimeServer",$this->inheritTimeServer);
 
     /* Show main page */
+    $this->netConfigDNS->cn= $this->cn;
     $smarty->assign("netconfig", $this->netConfigDNS->execute());
     return($smarty->fetch (get_template_path('workstation.tpl', TRUE)));
   }