Allowed number of telephone digits
-
How do I increase the number of allowed digits in a Patron telephone field?
In the file WEBLIB_PatronRecord_Admin.php below if I increase the value 10 the patron is not added if their phone number has more than 10 digits
$newtelephone = WEBLIB_Patrons_Admin::striptelephonedashes($_REQUEST[‘telephone’]);
if (!preg_match(‘/^\d+$/’,$newtelephone) && strlen($newtelephone) != 10) {
$result .= ‘
<span id=”error”>’.__(‘Telephone invalid’,’web-librarian’) . ‘</span>’;
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Allowed number of telephone digits’ is closed to new replies.