Code

Added base check for phones
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 10:07:20 +0000 (10:07 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 10:07:20 +0000 (10:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15528 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/admin/systems/gofon/class_phoneGeneric.inc
gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc
gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc

index ee08531836163e3b5794699910dc5ab5f741e60e..3324452f5576dfa147839656b4f76746e48a0161 100644 (file)
@@ -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"));
index 069010e809aa6e458d94713eb11d2c656bad565a..1895d9c0c1783a4514591d8cd17dd6511f8f14e5 100644 (file)
@@ -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"));
     }
index 3fe01851a77b54bcca7827b9ad33bffc9a5ce4c2..817b7aeadb9b554e10e286768bcc5981fd51fd8a 100644 (file)
@@ -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 == ""){