Validation fix for account class id entry.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 8 Jan 2009 12:32:48 +0000 (12:32 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Thu, 8 Jan 2009 12:32:48 +0000 (12:32 +0000)
CHANGELOG.txt
gl/manage/gl_account_classes.php

index 3e4a02179028bd62a137aac60163d5159d09bf06..95a39e31b933969cc07157cf403439f1ea377fa6 100644 (file)
@@ -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.
index 8de53227e5da3b4463dd2a0c7cf208e8f9b8cfaf..41c2af81e69a110000a6ffaadbaf6def9bb53994 100644 (file)
@@ -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."));