Prevent false error for product duplication
This commit is contained in:
1 parent
3a5a9dea14
commit
6e383a2d38
1 file changed
+1
-1
@@ -796,7 +796,7 @@ class CategoryCore extends ObjectModel
|
|||||||
)).')';
|
)).')';
|
||||||
|
|
||||||
$flag = Db::getInstance()->execute('
|
$flag = Db::getInstance()->execute('
|
||||||
INSERT INTO `'._DB_PREFIX_.'category_product` (`id_product`, `id_category`, `position`)
|
INSERT IGNORE INTO `'._DB_PREFIX_.'category_product` (`id_product`, `id_category`, `position`)
|
||||||
VALUES '.implode(',', $row)
|
VALUES '.implode(',', $row)
|
||||||
);
|
);
|
||||||
return $flag;
|
return $flag;
|
||||||
|
|||||||
Reference in new issue
Block a user