From 67bd45b2f859fe8a1a4bd41c8923c3489c2da51b Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 10 Aug 2007 15:29:11 +0000 Subject: [PATCH] We need to place the hardware address, too git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7041 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_dhcpHost.inc | 4 +++- plugins/admin/systems/class_termDNS.inc | 1 + plugins/admin/systems/dhcp_host.tpl | 4 ++-- plugins/admin/systems/network.tpl | 6 +----- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/plugins/admin/systems/class_dhcpHost.inc b/plugins/admin/systems/class_dhcpHost.inc index 2bca1bba7..479707c00 100644 --- a/plugins/admin/systems/class_dhcpHost.inc +++ b/plugins/admin/systems/class_dhcpHost.inc @@ -99,7 +99,9 @@ class dhcpHost extends dhcpPlugin if (isset($_POST['hwtype'])){ /* Assemble hwAddress */ - $this->dhcpHWAddress= get_post('hwtype')." ".get_post('dhcpHWAddress'); + if (isset($_POST['dhcpHWAddress'])){ + $this->dhcpHWAddress= get_post('hwtype')." ".get_post('dhcpHWAddress'); + } if(!$this->realGosaHost){ $this->cn= validate(get_post('cn')); diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 8ee236d18..6c82146b1 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -210,6 +210,7 @@ class termDNS extends plugin $this->dialog = new dhcpHost($this->dhcpHostEntry,TRUE); } $this->dialog->cn = $this->cn; + $this->dialog->dhcpHWAddress = $this->macAddress; if(!empty($this->ipHostNumber)){ $this->dialog->statements['fixed-address'] = $this->ipHostNumber; } diff --git a/plugins/admin/systems/dhcp_host.tpl b/plugins/admin/systems/dhcp_host.tpl index 1c8d4d634..c5ee7a281 100644 --- a/plugins/admin/systems/dhcp_host.tpl +++ b/plugins/admin/systems/dhcp_host.tpl @@ -26,7 +26,7 @@ {t}Hardware type{/t} - {html_options options=$hwtypes selected=$hwtype} @@ -34,7 +34,7 @@ {t}Hardware address{/t}{$must} - + diff --git a/plugins/admin/systems/network.tpl b/plugins/admin/systems/network.tpl index e59390bab..035629fbf 100644 --- a/plugins/admin/systems/network.tpl +++ b/plugins/admin/systems/network.tpl @@ -41,11 +41,7 @@ - - - -   - +   -- 2.30.2