From: <ex...@us...> - 2013-08-14 09:22:46
|
Revision: 6204 http://sourceforge.net/p/web-erp/reponame/6204 Author: exsonqu Date: 2013-08-14 09:22:43 +0000 (Wed, 14 Aug 2013) Log Message: ----------- 14/8/2013 Exson: fixed the in_array() warning in WorkOrderIssue.php and make it html5 compatible. Modified Paths: -------------- trunk/WorkOrderIssue.php Modified: trunk/WorkOrderIssue.php =================================================================== --- trunk/WorkOrderIssue.php 2013-08-14 09:03:59 UTC (rev 6203) +++ trunk/WorkOrderIssue.php 2013-08-14 09:22:43 UTC (rev 6204) @@ -808,7 +808,7 @@ echo '<tr> <td><select name="SerialNos[]" multiple="multiple">'; while ($SerialNoRow = DB_fetch_array($SerialNoResult)){ - if (in_array($SerialNoRow['serialno'],$_POST['SerialNos'])){ + if (isset($_POST['SerialNos']) and in_array($SerialNoRow['serialno'],$_POST['SerialNos'])){ echo '<option selected="selected" value="' . $SerialNoRow['serialno'] . '">' . $SerialNoRow['serialno'] . '</option>'; } else { echo '<option value="' . $SerialNoRow['serialno'] . '">' . $SerialNoRow['serialno'] . '</option>'; @@ -827,7 +827,7 @@ for ($i=0;$i<15;$i++){ echo '<tr> <td><input type="text" name="BatchRef' . $i .'" title="' . _('Enter a batch/roll reference being used with this work order') . '" /></td> - <td><input type="number" title="' . _('Enter the quantity of this batch/roll to issue to the work order') . '" name="Qty' . $i .'" value="0" /></td></tr>'; + <td><input class="number" title="' . _('Enter the quantity of this batch/roll to issue to the work order') . '" name="Qty' . $i .'" value="0" /></td></tr>'; } echo '<input type="hidden" name="IssueItem" value="' . $_POST['IssueItem'] . '" />'; echo '<tr> @@ -848,4 +848,4 @@ </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> |