Focus set to invalid field after submit check fail
[fa-stable.git] / inventory / cost_update.php
index 392160392290e1f027b4d0fa34ec4ee1adc9df9e..16544599b89fac222e8c7ba76192cd4022581ceb 100644 (file)
@@ -41,6 +41,7 @@ if (isset($_POST['UpdateData']))
                !check_num('overhead_cost'))
        {
                display_error( _("The entered cost is not numeric."));
+               set_focus('material_cost');
                $should_update = false;
        }
        elseif ($old_cost == $new_cost)