X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fmanage%2Fitem_units.php;h=a17ac69ff5045b085d7d114b2c25d35051917b1f;hb=45a035785b9a820621da56dec93078b3ccd9832e;hp=64ad4deeaf2b978e451ee4e131a14c2604ab82dd;hpb=0b253e5e0d23400838d3bfb4f27fb3fb2637b3ab;p=fa-stable.git diff --git a/inventory/manage/item_units.php b/inventory/manage/item_units.php index 64ad4dee..a17ac69f 100644 --- a/inventory/manage/item_units.php +++ b/inventory/manage/item_units.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 11; -$path_to_root="../.."; +$page_security = 'SA_UOM'; +$path_to_root = "../.."; include($path_to_root . "/includes/session.inc"); page(_("Units of Measure")); @@ -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;