From: <Ex...@us...> - 2012-05-18 06:59:06
|
Revision: 5366 http://web-erp.svn.sourceforge.net/web-erp/?rev=5366&view=rev Author: ExsonQu Date: 2012-05-18 06:59:00 +0000 (Fri, 18 May 2012) Log Message: ----------- 18/5/2012 Ahmed.Fawzy: Fixed Branch code validation rule to rule out '-' in CustomerBranches.php. Modified Paths: -------------- trunk/CustomerBranches.php Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2012-05-18 06:56:02 UTC (rev 5365) +++ trunk/CustomerBranches.php 2012-05-18 06:59:00 UTC (rev 5366) @@ -46,7 +46,7 @@ $_POST['BranchCode'] = mb_strtoupper($_POST['BranchCode']); - if (ContainsIllegalCharacters($_POST['BranchCode']) OR mb_strstr($_POST['BranchCode'],' ')) { + if (ContainsIllegalCharacters($_POST['BranchCode']) OR mb_strstr($_POST['BranchCode'],' ') OR mb_strstr($_POST['BranchCode'],'-')) { $InputError = 1; prnMsg(_('The Branch code cannot contain any of the following characters')." - & \'",'error'); $Errors[$i] = 'BranchCode'; @@ -912,4 +912,4 @@ } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |