From: cajus Date: Mon, 1 Feb 2010 10:07:20 +0000 (+0000) Subject: Added base check for phones X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=880869f5f775148719c80902f57389e9aebee60c;p=gosa.git Added base check for phones git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15528 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc index ee0853183..3324452f5 100644 --- a/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc +++ b/gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc @@ -314,6 +314,11 @@ class phoneGeneric extends plugin } } + // Check if a wrong base was supplied + if(!$this->baseSelector->checkLastBaseUpdate()){ + $message[]= msgPool::check_base();; + } + /* Check if given name is a valid host/dns name */ if(!tests::is_dns_name($this->cn) ){ $message[] = msgPool::invalid(_("Name")); diff --git a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc index 069010e80..1895d9c0c 100644 --- a/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc +++ b/gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc @@ -355,6 +355,11 @@ class conference extends plugin $message[]= msgPool::required(_("PIN")); } + // Check if a wrong base was supplied + if(!$this->baseSelector->checkLastBaseUpdate()){ + $message[]= msgPool::check_base();; + } + if($this->cn == ""){ $message[] = msgPool::required(_("Name")); } diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc index 3fe01851a..817b7aead 100644 --- a/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc +++ b/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc @@ -387,6 +387,11 @@ class macro extends plugin $message[]= msgPool::duplicated(_("Name")); } } + + // Check if a wrong base was supplied + if(!$this->baseSelector->checkLastBaseUpdate()){ + $message[]= msgPool::check_base();; + } /* Check if display name is set */ if($this->displayName == ""){