Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php b/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php
- index 794fc94d6a2..cf7eda9b8f2 100644
- --- a/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php
- +++ b/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php
- @@ -349,7 +349,9 @@ class Rule extends AbstractResource
- }
- }
- }
- - $connection->insertMultiple($this->getTable('salesrule_product_attribute'), $data);
- + if ($data) {
- + $connection->insertMultiple($this->getTable('salesrule_product_attribute'), $data);
- + }
- }
- return $this;
Add Comment
Please, Sign In to add comment