From 17bbab09c766166efa306c845fbcd9ead4656623 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 7 Dec 2006 13:53:49 +0000 Subject: [PATCH] Fixed netconf for first time calls git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5343 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_componentGeneric.inc | 1 + plugins/admin/systems/class_phoneGeneric.inc | 1 + plugins/admin/systems/class_printGeneric.inc | 1 + plugins/admin/systems/class_servGeneric.inc | 1 + plugins/admin/systems/class_terminalGeneric.inc | 1 + plugins/admin/systems/class_winGeneric.inc | 1 + plugins/admin/systems/class_workstationGeneric.inc | 1 + 7 files changed, 7 insertions(+) diff --git a/plugins/admin/systems/class_componentGeneric.inc b/plugins/admin/systems/class_componentGeneric.inc index 46821aa95..b0bb33486 100644 --- a/plugins/admin/systems/class_componentGeneric.inc +++ b/plugins/admin/systems/class_componentGeneric.inc @@ -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))); } diff --git a/plugins/admin/systems/class_phoneGeneric.inc b/plugins/admin/systems/class_phoneGeneric.inc index 76718175b..3fc6e9fc0 100644 --- a/plugins/admin/systems/class_phoneGeneric.inc +++ b/plugins/admin/systems/class_phoneGeneric.inc @@ -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))); diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc index 18a936bbf..b74997283 100644 --- a/plugins/admin/systems/class_printGeneric.inc +++ b/plugins/admin/systems/class_printGeneric.inc @@ -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", ""); diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index d84794ebd..af9812c9e 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -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); diff --git a/plugins/admin/systems/class_terminalGeneric.inc b/plugins/admin/systems/class_terminalGeneric.inc index 282693b3b..88bbce350 100644 --- a/plugins/admin/systems/class_terminalGeneric.inc +++ b/plugins/admin/systems/class_terminalGeneric.inc @@ -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))); diff --git a/plugins/admin/systems/class_winGeneric.inc b/plugins/admin/systems/class_winGeneric.inc index fc0191a72..e297a4c73 100644 --- a/plugins/admin/systems/class_winGeneric.inc +++ b/plugins/admin/systems/class_winGeneric.inc @@ -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))); } diff --git a/plugins/admin/systems/class_workstationGeneric.inc b/plugins/admin/systems/class_workstationGeneric.inc index 1d7d55659..3ba74d927 100644 --- a/plugins/admin/systems/class_workstationGeneric.inc +++ b/plugins/admin/systems/class_workstationGeneric.inc @@ -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))); } -- 2.30.2