FIX : Travis
This commit is contained in:
parent
805d457be1
commit
2c90f7335e
@ -638,8 +638,8 @@ class Mo extends CommonObject
|
|||||||
|
|
||||||
$oldQty = $this->oldQty;
|
$oldQty = $this->oldQty;
|
||||||
$newQty = $this->qty;
|
$newQty = $this->qty;
|
||||||
if($newQty != $oldQty) {
|
if($newQty != $oldQty && !empty($this->oldQty)) {
|
||||||
$sql = 'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'mrp_production WHERE fk_mo = ' . $this->id;
|
$sql = 'SELECT rowid FROM ' . MAIN_DB_PREFIX . 'mrp_production WHERE fk_mo = ' . (int) $this->id;
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
if($resql) {
|
if($resql) {
|
||||||
while ($obj = $this->db->fetch_object($resql)) {
|
while ($obj = $this->db->fetch_object($resql)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user