From: hickert Date: Mon, 21 Dec 2009 13:02:25 +0000 (+0000) Subject: Increased Phonenumber digit limit too 20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=306cf5daae5899fbf0bbffca28799ba6ec40d593;p=gosa.git Increased Phonenumber digit limit too 20 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14918 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc index 361eed980..fc131d19b 100644 --- a/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc +++ b/gosa-plugins/gofon/gofon/phoneaccount/class_phoneAccount.inc @@ -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;