Focus set to invalid field after submit check fail
[fa-stable.git] / gl / manage / bank_trans_types.php
index bc9efacd755acaa01a605d7540e044ebb595d738..5f5267f3c1ed7d4a8cc618543733288454865e2e 100644 (file)
@@ -33,6 +33,7 @@ if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM']))
        {
                $input_error = 1;
                display_error( _("The bank transaction type name cannot be empty."));
+               set_focus('name');
        }
 
        if ($input_error != 1)