projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Focus set to invalid field after submit check fail
[fa-stable.git]
/
manufacturing
/
manage
/
work_centres.php
diff --git
a/manufacturing/manage/work_centres.php
b/manufacturing/manage/work_centres.php
index 865fecd818e7dcfeb94da58583b5ec2ba6f2beec..bd08430ef1707cc8fbc46f52a53cbc3db65410f9 100644
(file)
--- a/
manufacturing/manage/work_centres.php
+++ b/
manufacturing/manage/work_centres.php
@@
-31,6
+31,7
@@
if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM']))
{
$input_error = 1;
display_error(_("The work centre name cannot be empty."));
+ set_focus('name');
}
if ($input_error != 1)