From: <ex...@us...> - 2015-10-06 10:03:53
|
Revision: 7363 http://sourceforge.net/p/web-erp/reponame/7363 Author: exsonqu Date: 2015-10-06 10:03:50 +0000 (Tue, 06 Oct 2015) Log Message: ----------- 06/10/15 Exson: Fixed the wrong unable to identify the selected customer warning at SelectOrderItems.php. Modified Paths: -------------- trunk/SelectOrderItems.php Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2015-09-30 12:36:52 UTC (rev 7362) +++ trunk/SelectOrderItems.php 2015-10-06 10:03:50 UTC (rev 7363) @@ -367,9 +367,9 @@ break; } } - if ($i==count($_POST)){ + if ($i==count($_POST) AND !isset($SelectedCustomer)){//if there is ONLY one customer searched at above, the $SelectedCustomer already setup, then there is a wrong warning prnMsg(_('Unable to identify the selected customer'),'error'); - } else { + } elseif(!isset($SelectedCustomer)) { $SelectedCustomer = $_POST['SelectedCustomer'.$i]; $SelectedBranch = $_POST['SelectedBranch'.$i]; } |