From: <Ex...@us...> - 2012-02-07 04:54:00
|
Revision: 4880 http://web-erp.svn.sourceforge.net/web-erp/?rev=4880&view=rev Author: ExsonQu Date: 2012-02-07 04:53:54 +0000 (Tue, 07 Feb 2012) Log Message: ----------- Add definition of $_POST['StockLocationFrom'] and $_POST['StockLocationTo'] to fix bug 'The entered item code does not exist' reported by PakRichard. Modified Paths: -------------- trunk/StockTransfers.php Modified: trunk/StockTransfers.php =================================================================== --- trunk/StockTransfers.php 2012-02-07 04:50:18 UTC (rev 4879) +++ trunk/StockTransfers.php 2012-02-07 04:53:54 UTC (rev 4880) @@ -83,6 +83,13 @@ if ($NewTransfer){ + if(!isset($_POST['StockLocationFrom'])){ + $_POST['StockLocationFrom']=''; + } + if(!isset($_POST['StockLocationTo'])){ + $_POST['StockLocationTo']=''; + } + $_SESSION['Transfer']= new StockTransfer(0, $_POST['StockLocationFrom'], '', @@ -569,4 +576,4 @@ echo '</div> </form>'; 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. |