From: <ex...@us...> - 2015-03-26 08:47:01
|
Revision: 7234 http://sourceforge.net/p/web-erp/reponame/7234 Author: exsonqu Date: 2015-03-26 08:46:59 +0000 (Thu, 26 Mar 2015) Log Message: ----------- 26/03/15 Exson: Fixed disabletrans status bug in CustomerBranches.php and fix index undefined noise. Modified Paths: -------------- trunk/CustomerBranches.php Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2015-03-25 05:26:45 UTC (rev 7233) +++ trunk/CustomerBranches.php 2015-03-26 08:46:59 UTC (rev 7234) @@ -458,7 +458,7 @@ urlencode($myrow[1]), _('Delete Branch')); - if ($myrow[11]){ + if ($myrow[10]){ $TotalDisable++; }else { $TotalEnable++; @@ -881,7 +881,7 @@ <tr> <td>' . _('Transactions on this branch') . ':</td> <td><select tabindex="20" name="DisableTrans">'; - if ($_POST['DisableTrans']==0){ + if (isset($_POST['DisableTrans']) AND $_POST['DisableTrans']==0){ echo '<option selected="selected" value="0">' . _('Enabled') . '</option> <option value="1">' . _('Disabled') . '</option>'; } else { @@ -991,4 +991,4 @@ } //end if record deleted no point displaying form to add record include('includes/footer.inc'); -?> \ No newline at end of file +?> |