Guest User

Untitled

a guest
Jan 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php b/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php
  2. index 794fc94d6a2..cf7eda9b8f2 100644
  3. --- a/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php
  4. +++ b/vendor/magento/module-sales-rule/Model/ResourceModel/Rule.php
  5. @@ -349,7 +349,9 @@ class Rule extends AbstractResource
  6. }
  7. }
  8. }
  9. - $connection->insertMultiple($this->getTable('salesrule_product_attribute'), $data);
  10. + if ($data) {
  11. + $connection->insertMultiple($this->getTable('salesrule_product_attribute'), $data);
  12. + }
  13. }
  14.  
  15. return $this;
Add Comment
Please, Sign In to add comment