From: hickert Date: Fri, 28 Mar 2008 14:46:57 +0000 (+0000) Subject: Fixed ip change problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6be65b7d587990c2cadc86c7287e02caaff67ede;p=gosa.git Fixed ip change problem git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@10066 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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']) &&