Focus set to invalid field after submit check fail
[fa-stable.git] / manufacturing / manage / bom_edit.php
index 94cc504c746759a850cbc263774972678b3c93b2..9399d99bc46405794519ba707d858b5a13b47eb1 100644 (file)
@@ -119,6 +119,7 @@ function on_submit($selected_parent, $selected_component=null)
        if (!check_num('quantity', 0))
        {
                display_error(_("The quantity entered must be numeric and greater than zero."));
+               set_focus('quantity');
                return;
        }