From 38c8db1f825d5d81908b4746e373261c8d42181e Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 8 Jan 2009 12:32:48 +0000 Subject: [PATCH] Validation fix for account class id entry. --- CHANGELOG.txt | 6 +++++- gl/manage/gl_account_classes.php | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 3e4a021..95a39e3 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +08-Jan-2009 Janusz Dobrowolski +# Numeric check on class id added. +$ /gl/manage/gl_account_classes.php + 02-Jan-2009 Joe Hunt # [0000104] minor language updates in a few sales files $ /sales/customer_invoice.php @@ -61,7 +65,7 @@ $ /includes/ui/ui_view.inc 10-Dec-2008 Janusz Dobrowolski # [0000099] New line added to inventory transfer/adjustment sometimes overwrites old one. -$ /inlucdes/ui/items_cart.inc +$ /includes/ui/items_cart.inc 09-Dec-2008 Janusz Dobrowolski # [0000098] Unable issue of credit note for invoice with removed item lines. diff --git a/gl/manage/gl_account_classes.php b/gl/manage/gl_account_classes.php index 8de5322..41c2af8 100644 --- a/gl/manage/gl_account_classes.php +++ b/gl/manage/gl_account_classes.php @@ -15,7 +15,12 @@ simple_page_mode(true); function can_process() { - + if (!is_numeric($_POST['id'])) + { + display_error( _("The account class ID must be numeric.")); + set_focus('id'); + return false; + } if (strlen($_POST['name']) == 0) { display_error( _("The account class name cannot be empty.")); -- 2.30.2