X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Flocations.php;h=6bb732fcb3ae2c10b4b775b46fe8293c8dfd3c37;hb=412b79dc32855f813d03a8a6dd9debd45bb308f5;hp=fe90a68c56fe14e19ea91eaff884dd66cd1accb9;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/inventory/manage/locations.php b/inventory/manage/locations.php index fe90a68c..6bb732fc 100644 --- a/inventory/manage/locations.php +++ b/inventory/manage/locations.php @@ -35,11 +35,13 @@ if (isset($_POST['ADD_ITEM']) || isset($_POST['UPDATE_ITEM'])) { $input_error = 1; display_error( _("The location code must be five characters or less long.")); + set_focus('loc_code'); } elseif (strlen($_POST['location_name']) == 0) { $input_error = 1; display_error( _("The location name must be entered.")); + set_focus('location_name'); } if ($input_error != 1)