File tree 1 file changed +3
-3
lines changed
app/code/Magento/Cms/Model/ResourceModel
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)
183
183
$ entityMetadata = $ this ->metadataPool ->getMetadata (BlockInterface::class);
184
184
$ linkField = $ entityMetadata ->getLinkField ();
185
185
186
- if ($ this ->_storeManager ->hasSingleStore ()) {
186
+ if ($ this ->_storeManager ->isSingleStoreMode ()) {
187
187
$ stores = [Store::DEFAULT_STORE_ID ];
188
188
} else {
189
- $ stores = (array )$ object ->getData ('stores ' );
189
+ $ stores = (array )$ object ->getData ('store_id ' );
190
190
}
191
191
192
192
$ select = $ this ->getConnection ()->select ()
@@ -230,7 +230,7 @@ public function lookupStoreIds($id)
230
230
'cbs. ' . $ linkField . ' = cb. ' . $ linkField ,
231
231
[]
232
232
)
233
- ->where ('cb. ' . $ entityMetadata ->getIdentifierField () . ' = :block_id ' );
233
+ ->where ('cb. ' . $ entityMetadata ->getIdentifierField () . ' = :block_id ' );
234
234
235
235
return $ connection ->fetchCol ($ select , ['block_id ' => (int )$ id ]);
236
236
}
You can’t perform that action at this time.
0 commit comments