From: hickert Date: Fri, 11 Jul 2008 08:41:05 +0000 (+0000) Subject: Fixed network configuration class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4464063ed629d828d35cadd4d481538d5e4fd3e3;p=gosa.git Fixed network configuration class - MACisMust wasn't used in checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11601 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index b03088a1b..25abd16ac 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -611,10 +611,12 @@ class termDNS extends plugin /* Check if mac is empty */ - if ($this->macAddress == "" ){ - $message[]= msgPool::required(_("MAC address")); - }elseif(!tests::is_mac($this->macAddress)){ - $message[]= msgPool::invalid(_("MAC address"), "", "", "00:0C:7F:31:33:F1"); + if($this->MACisMust || $this->dhcp_is_Account){ + if ($this->macAddress == "" ){ + $message[]= msgPool::required(_("MAC address")); + }elseif(!tests::is_mac($this->macAddress)){ + $message[]= msgPool::invalid(_("MAC address"), "", "", "00:0C:7F:31:33:F1"); + } } /* only perfrom this checks if this is a valid DNS account */