projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Module gl sealed against XSS Attacks
[fa-stable.git]
/
taxes
/
tax_groups.php
diff --git
a/taxes/tax_groups.php
b/taxes/tax_groups.php
index f04e0bfa3ecb13a8a16b75c3ec27b3f4ab194670..398d6255f485aff7b1e32db5cd13c8435585e4d4 100644
(file)
--- a/
taxes/tax_groups.php
+++ b/
taxes/tax_groups.php
@@
-38,6
+38,7
@@
if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM']))
{
$input_error = 1;
display_error(_("The tax group name cannot be empty."));
{
$input_error = 1;
display_error(_("The tax group name cannot be empty."));
+ set_focus('name');
}
else
{
}
else
{
@@
-48,9
+49,10
@@
if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM']))
$_POST['tax_type_id' . $i] != reserved_words::get_all_numeric() &&
!check_num('rate' . $i, 0))
{
$_POST['tax_type_id' . $i] != reserved_words::get_all_numeric() &&
!check_num('rate' . $i, 0))
{
-
display_error( _("An entered tax rate is invalid or less than zero."));
+ display_error( _("An entered tax rate is invalid or less than zero."));
$input_error = 1;
$input_error = 1;
- break;
+ set_focus('rate');
+ break;
}
}
}
}
}
}