Contact phone edit change the type from number to text. We use a regular expression to remove all formatting but its convenient to allow the formatting and then remove it to save in the databaase. In particular its convenient when using copy and paste.
This commit is contained in:
parent
2bb98fb2e5
commit
b2c732910a
|
|
@ -293,7 +293,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
|||
echo " ".$text['label-phone_number']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='number' name='phone_number' maxlength='255' min='0' step='1' value=\"$phone_number\">\n";
|
||||
echo " <input class='formfld' type='text' name='phone_number' maxlength='255' min='0' step='1' value=\"$phone_number\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-phone_number']."\n";
|
||||
echo "</td>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue