From 6be65b7d587990c2cadc86c7287e02caaff67ede Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 28 Mar 2008 14:46:57 +0000 Subject: [PATCH] Fixed ip change problem git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@10066 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_termDNS.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/admin/systems/class_termDNS.inc b/plugins/admin/systems/class_termDNS.inc index 274424ab5..252d99062 100644 --- a/plugins/admin/systems/class_termDNS.inc +++ b/plugins/admin/systems/class_termDNS.inc @@ -565,6 +565,15 @@ class termDNS extends plugin } } + /* Updated IP host number */ + if($this->dhcp_is_Account){ + foreach($this->dhcpHostEntry['dhcpStatements'] as $id => $value){ + if(preg_match("/^fixed-address/",$value)){ + $this->dhcpHostEntry['dhcpStatements'][$id] = "fixed-address ".$this->ipHostNumber; + $this->dhcpHostEntry['MODIFIED'] = TRUE; + } + } + } /* Unset dhcpStatements if this attribute is empty */ if(isset($this->dhcpHostEntry['dhcpStatements']) && -- 2.30.2