Focus set to invalid field after submit check fail
[fa-stable.git] / admin / shipping_companies.php
index 7d4e530c7cb0a424742928a86d821c1a15f11a42..9fd8af5991bd19aa6fd0b0ca538786ba60a2e3f7 100644 (file)
@@ -24,6 +24,7 @@ function can_process()
        if (strlen($_POST['shipper_name']) == 0) 
        {
                display_error(_("The shipping company name cannot be empty."));
+               set_focus('shipper_name');
                return false;
        }
        return true;