Skip to content

Commit

Permalink
Update Order did not work in Firefox. Error in pattern attribute.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.code.sf.net/p/web-erp/code/trunk@7244 09516a42-71f9-43be-811f-9b821cf0d246
  • Loading branch information
vvs2012 committed Mar 30, 2015
1 parent 30c509c commit 7ffcbb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TaxGroups.php
Expand Up @@ -93,7 +93,7 @@

while($myrow=DB_fetch_row($Result)) {

if(is_numeric($_POST['CalcOrder_' . $myrow[0]]) AND $_POST['CalcOrder_' . $myrow[0]] <5) {
if(is_numeric($_POST['CalcOrder_' . $myrow[0]]) AND $_POST['CalcOrder_' . $myrow[0]] < 10) {

$sql = "UPDATE taxgrouptaxes
SET calculationorder='" . $_POST['CalcOrder_' . $myrow[0]] . "',
Expand Down Expand Up @@ -304,7 +304,7 @@
$j++;
}
echo '<td>' . $TaxAuthRow[$i]['taxname'] . '</td>
<td><input type="text" class="integer" pattern="[1-4] {1}" title="'._('The input must be positive integer and less than 5').'" name="CalcOrder_' . $TaxAuthRow[$i]['taxauthid'] . '" value="' . $TaxAuthRow[$i]['calculationorder'] . '" size="2" maxlength="2" style="width: 100%" /></td>
<td><input type="text" class="integer" pattern="(?!^0*$)(\d+)" title="'._('The input must be positive integer and less than 10').'" name="CalcOrder_' . $TaxAuthRow[$i]['taxauthid'] . '" value="' . $TaxAuthRow[$i]['calculationorder'] . '" size="1" maxlength="1" style="width: 90%" /></td>
<td><select name="TaxOnTax_' . $TaxAuthRow[$i]['taxauthid'] . '" style="width: 100%">';
if($TaxAuthRow[$i]['taxontax']==1) {
echo '<option selected="selected" value="1">' . _('Yes') . '</option>';
Expand Down

0 comments on commit 7ffcbb6

Please sign in to comment.