diff --git a/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php b/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php index d24767eddfb1f..ae78134fc1aeb 100644 --- a/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php +++ b/app/code/Magento/SalesRule/Model/ResourceModel/Rule/Collection.php @@ -343,13 +343,9 @@ public function addWebsiteGroupDateFilter($websiteId, $customerGroupId, $now = n 'customer_group_ids.' . $entityInfo['entity_id_field'] . ' = cgw.' . - $entityInfo['entity_id_field'] . ' AND ' . $websiteId . ' = cgw.website_id', + $entityInfo['entity_id_field'] . ' AND ' . (int) $websiteId . ' = cgw.website_id', [] - )->where( - 'cgw.website_id IS NULL', - $websiteId, - \Zend_Db::INT_TYPE - ); + )->where('cgw.website_id IS NULL'); $this->getDateApplier()->applyDate($this->getSelect(), $now);