From: <lin...@us...> - 2010-02-15 05:17:26
|
Revision: 3347 http://web-erp.svn.sourceforge.net/web-erp/?rev=3347&view=rev Author: lindsayh Date: 2010-02-15 05:17:17 +0000 (Mon, 15 Feb 2010) Log Message: ----------- The API's SearchCustomer function did not return 0 as the first element of the array to indicate success. Modified Paths: -------------- trunk/api/api_customers.php trunk/doc/Change.log.html Modified: trunk/api/api_customers.php =================================================================== --- trunk/api/api_customers.php 2010-02-14 06:40:17 UTC (rev 3346) +++ trunk/api/api_customers.php 2010-02-15 05:17:17 UTC (rev 3347) @@ -535,11 +535,9 @@ FROM debtorsmaster WHERE '.$Field.' LIKE "%'.$Criteria.'%"'; $result = DB_Query($sql, $db); - $i=0; - $DebtorList = array(); + $DebtorList = array(0); // First element: no errors while ($myrow=DB_fetch_array($result)) { - $DebtorList[$i]=$myrow[0]; - $i++; + $DebtorList[]=$myrow[0]; } return $DebtorList; } Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-02-14 06:40:17 UTC (rev 3346) +++ trunk/doc/Change.log.html 2010-02-15 05:17:17 UTC (rev 3347) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>15/02/10 Lindsay: Return no error indication from SearchCustomer() API <p>12/02/10 Thomas Timothy Lie: Completion of Indonesian translation</p> <p>12/02/10 Paul: PO_Items.php - Incorrect number of decimal places shown for pricdes less than 1</p> <p>12/02/10 Tim: Update phplot to the laterst version and remove reference to deprecated function eregi()</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |