Code

Increased Phonenumber digit limit too 20
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Dec 2009 13:02:25 +0000 (13:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 21 Dec 2009 13:02:25 +0000 (13:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14918 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc

index 361eed9804a6b74b8e433ad008a852726ffe284a..fc131d19b11b3c40cb37dd08b2899e0b9dad13a6 100644 (file)
@@ -1207,8 +1207,8 @@ class phoneAccount extends plugin
     /* Add phone number */
     if (isset($_POST["add_phonenumber"]) && $_POST['phonenumber']){
 
-      if(strlen(trim($_POST["phonenumber"])) > 5 ){
-        msg_dialog::display(_("Error"), msgPool::toobig("Phone number",99999), ERROR_DIALOG);
+      if(strlen(trim($_POST["phonenumber"])) > 20 ){
+        msg_dialog::display(_("Error"), msgPool::toobig("Phone number"), ERROR_DIALOG);
       }elseif (tests::is_phone_nr($_POST['phonenumber'])){
         $number= trim($_POST["phonenumber"]);
         $this->phoneNumbers[$number]= $number;