Merge pull request #595 from codl/fix/too-many-packs
[-] WS: Sanity check before creating packs
This commit is contained in:
commit
5015f88a46
1 file changed
+2
-1
+2
-1
@@ -5393,7 +5393,8 @@ class ProductCore extends ObjectModel
|
|||||||
Pack::deleteItems($this->id);
|
Pack::deleteItems($this->id);
|
||||||
|
|
||||||
foreach ($items as $item)
|
foreach ($items as $item)
|
||||||
Pack::addItem($this->id, (int)$item['id'], (int)$item['quantity']);
|
if((int)$item['id'] > 0)
|
||||||
|
Pack::addItem($this->id, (int)$item['id'], (int)$item['quantity']);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user