From 4464063ed629d828d35cadd4d481538d5e4fd3e3 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 11 Jul 2008 08:41:05 +0000 Subject: [PATCH] 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 --- gosa-plugins/systems/admin/systems/class_termDNS.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 */ -- 2.30.2