X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fitem_units.php;h=a17ac69ff5045b085d7d114b2c25d35051917b1f;hb=8ea6c4dd0d9b31b3456d012b0c94339b801bee0c;hp=39be1be54d192d1c986488d67063d1aa50a68907;hpb=902f1015d874c33bd7946b17de2ad80b4f2144b6;p=fa-stable.git diff --git a/inventory/manage/item_units.php b/inventory/manage/item_units.php index 39be1be5..a17ac69f 100644 --- a/inventory/manage/item_units.php +++ b/inventory/manage/item_units.php @@ -34,6 +34,12 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') display_error(_("The unit of measure code cannot be empty.")); set_focus('abbr'); } + if (strlen(db_escape($_POST['abbr']))>(20+2)) + { + $input_error = 1; + display_error(_("The unit of measure code is too long.")); + set_focus('abbr'); + } if (strlen($_POST['description']) == 0) { $input_error = 1;