diff --git a/app/code/Magento/Cms/Model/ResourceModel/Block.php b/app/code/Magento/Cms/Model/ResourceModel/Block.php index 9c02d2ee7c47b..d5bae7359fe35 100644 --- a/app/code/Magento/Cms/Model/ResourceModel/Block.php +++ b/app/code/Magento/Cms/Model/ResourceModel/Block.php @@ -183,7 +183,7 @@ public function getIsUniqueBlockToStores(AbstractModel $object) $entityMetadata = $this->metadataPool->getMetadata(BlockInterface::class); $linkField = $entityMetadata->getLinkField(); - if ($this->_storeManager->hasSingleStore()) { + if ($this->_storeManager->isSingleStoreMode()) { $stores = [Store::DEFAULT_STORE_ID]; } else { $stores = (array)$object->getData('store_id'); @@ -230,7 +230,7 @@ public function lookupStoreIds($id) 'cbs.' . $linkField . ' = cb.' . $linkField, [] ) - ->where('cb.' . $entityMetadata->getIdentifierField() . ' = :block_id'); + ->where('cb.' . $entityMetadata->getIdentifierField() . ' = :block_id'); return $connection->fetchCol($select, ['block_id' => (int)$id]); }