FIX replenish if line test GETPOST on line 0
This commit is contained in:
parent
cef7b9c92d
commit
7f807986d7
@ -115,7 +115,7 @@ if ($action == 'order' && isset($_POST['valid']))
|
|||||||
$suppliers = array();
|
$suppliers = array();
|
||||||
for ($i = 0; $i < $linecount; $i++)
|
for ($i = 0; $i < $linecount; $i++)
|
||||||
{
|
{
|
||||||
if (GETPOST($i, 'alpha') === 'on' && GETPOST('fourn' . $i, 'int') > 0)
|
if (GETPOST('choose' . $i, 'alpha') === 'on' && GETPOST('fourn' . $i, 'int') > 0)
|
||||||
{
|
{
|
||||||
//one line
|
//one line
|
||||||
$box = $i;
|
$box = $i;
|
||||||
@ -616,7 +616,7 @@ while ($i < ($limit ? min($num, $limit) : $num))
|
|||||||
|
|
||||||
// Select field
|
// Select field
|
||||||
//print '<td><input type="checkbox" class="check" name="' . $i . '"' . $disabled . '></td>';
|
//print '<td><input type="checkbox" class="check" name="' . $i . '"' . $disabled . '></td>';
|
||||||
print '<td><input type="checkbox" class="check" name="'.$i.'"></td>';
|
print '<td><input type="checkbox" class="check" name="choose'.$i.'"></td>';
|
||||||
|
|
||||||
print '<td class="nowrap">'.$prod->getNomUrl(1, '').'</td>';
|
print '<td class="nowrap">'.$prod->getNomUrl(1, '').'</td>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user