Merge pull request #595 from codl/fix/too-many-packs
[-] WS: Sanity check before creating packs
This commit is contained in:
+2
-1
@@ -5393,7 +5393,8 @@ class ProductCore extends ObjectModel
|
||||
Pack::deleteItems($this->id);
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user