File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Cms/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ public function getIsUniqueBlockToStores(AbstractModel $object)
183183 $ entityMetadata = $ this ->metadataPool ->getMetadata (BlockInterface::class);
184184 $ linkField = $ entityMetadata ->getLinkField ();
185185
186- if ($ this ->_storeManager ->hasSingleStore ()) {
186+ if ($ this ->_storeManager ->isSingleStoreMode ()) {
187187 $ stores = [Store::DEFAULT_STORE_ID ];
188188 } else {
189- $ stores = (array )$ object ->getData ('stores ' );
189+ $ stores = (array )$ object ->getData ('store_id ' );
190190 }
191191
192192 $ select = $ this ->getConnection ()->select ()
@@ -230,7 +230,7 @@ public function lookupStoreIds($id)
230230 'cbs. ' . $ linkField . ' = cb. ' . $ linkField ,
231231 []
232232 )
233- ->where ('cb. ' . $ entityMetadata ->getIdentifierField () . ' = :block_id ' );
233+ ->where ('cb. ' . $ entityMetadata ->getIdentifierField () . ' = :block_id ' );
234234
235235 return $ connection ->fetchCol ($ select , ['block_id ' => (int )$ id ]);
236236 }
You can’t perform that action at this time.
0 commit comments