From: <ice...@us...> - 2013-09-13 00:58:55
|
Revision: 6337 http://sourceforge.net/p/web-erp/reponame/6337 Author: icedlava Date: 2013-09-13 00:58:50 +0000 (Fri, 13 Sep 2013) Log Message: ----------- Fix pattern to allow entry in customer code search. Thanks Tim for highlighting issue. Modified Paths: -------------- trunk/SelectCustomer.php Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2013-09-11 03:25:08 UTC (rev 6336) +++ trunk/SelectCustomer.php 2013-09-13 00:58:50 UTC (rev 6337) @@ -274,9 +274,9 @@ <td><b>' . _('OR') . '</b></td><td>' . _('Enter a partial Code') . ':</td> <td>'; if (isset($_POST['CustCode'])) { - echo '<input type="text" name="CustCode" pattern="[0-9+()\s]*" value="' . $_POST['CustCode'] . '" size="15" maxlength="18" />'; + echo '<input type="text" name="CustCode" pattern="[\w-]*" value="' . $_POST['CustCode'] . '" size="15" maxlength="18" />'; } else { - echo '<input type="text" name="CustCode" pattern="[0-9+()\s]*" size="15" maxlength="18" />'; + echo '<input type="text" name="CustCode" pattern="[\w-]*" size="15" maxlength="18" />'; } echo '</td> </tr> @@ -285,9 +285,9 @@ <td>' . _('Enter a partial Phone Number') . ':</td> <td>'; if (isset($_POST['CustPhone'])) { - echo '<input type="tel" name="CustPhone" pattern="[0-9a-zA-Z_]*" value="' . $_POST['CustPhone'] . '" size="15" maxlength="18" />'; + echo '<input type="tel" name="CustPhone" pattern="[0-9\-\s()+]*" value="' . $_POST['CustPhone'] . '" size="15" maxlength="18" />'; } else { - echo '<input type="tel" name="CustPhone" pattern="[0-9\-\s()+]*"size="15" maxlength="18" />'; + echo '<input type="tel" name="CustPhone" pattern="[0-9\-\s()+]* "size="15" maxlength="18" />'; } echo '</td>'; echo '<td><b>' . _('OR') . '</b></td> |