From: <ex...@us...> - 2016-05-09 03:12:40
|
Revision: 7513 http://sourceforge.net/p/web-erp/reponame/7513 Author: exsonqu Date: 2016-05-09 03:12:38 +0000 (Mon, 09 May 2016) Log Message: ----------- 09/05/16 Exson: Tidy Code Up to remove redundant code according to Tim's guide. Modified Paths: -------------- trunk/StockClone.php Modified: trunk/StockClone.php =================================================================== --- trunk/StockClone.php 2016-05-08 15:59:07 UTC (rev 7512) +++ trunk/StockClone.php 2016-05-09 03:12:38 UTC (rev 7513) @@ -588,7 +588,7 @@ <input type="hidden" name="New" value="'.$_POST['New'].'" /> <table class="selection">'; -if (empty($_POST['StockID']) || (isset($_POST['StockID']) AND $_POST['StockID'] == $_POST['OldStockID']) || isset($_POST['UpdateCategories'])) { +if (empty($_POST['StockID']) || $_POST['StockID'] == $_POST['OldStockID']) || isset($_POST['UpdateCategories'])) { /*If the page was called without $StockID or empty $StockID then a new cloned stock item is to be entered. Show a form with a part Code field, otherwise show form for editing with only a hidden OldStockID field. */ |