Focus set to invalid field after submit check fail
[fa-stable.git] / purchasing / allocations / supplier_allocate.php
index 0a85f478638ba39fd41d21fb8a0ecd0c78e65412..2f93c1a9829e6ddee275a8b981af1ba2a144669c 100644 (file)
@@ -46,6 +46,7 @@ function check_data()
                if (!check_num('amount' . $counter, 0))
                {
                        display_error(_("The entry for one or more amounts is invalid or negative."));
+                       set_focus('amount');
                        return false;
                 }