fixed error when trying to create an order when a line has no associated supplier

This commit is contained in:
Cédric Salvador 2013-06-10 16:07:41 +02:00
parent bcbe940ac0
commit c0c2f9af42

View File

@ -93,7 +93,7 @@ if($action == 'order'){
if($linecount > 0){
$suppliers = array();
for($i = 0; $i < $linecount; $i++) {
if(GETPOST($i, 'alpha') === 'on') { //one line
if(GETPOST($i, 'alpha') === 'on' && GETPOST('fourn'.$i, 'int') > 0) { //one line
$supplierpriceid = GETPOST('fourn'.$i, 'int');
//get all the parameters needed to create a line
$qty = GETPOST('tobuy'.$i, 'int');