Fix scrutinizer errors

This commit is contained in:
Laurent Destailleur
2017-05-13 18:50:55 +02:00
parent 70b73c73f7
commit 553f5b990c
4 changed files with 11 additions and 15 deletions

View File

@@ -2875,11 +2875,6 @@ class Commande extends CommonOrder
$this->error=$langs->trans('ErrorStockIsNotEnoughToAddProductOnOrder', $product->ref);
dol_syslog(get_class($this)."::addline error=Product ".$product->ref.": ".$this->error, LOG_ERR);
$this->db->rollback();
unset($_POST['productid']);
unset($_POST['tva_tx']);
unset($_POST['price_ht']);
unset($_POST['qty']);
unset($_POST['buying_price']);
return self::STOCK_NOT_ENOUGH_FOR_ORDER;
}
}