File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/code/Magento/Cms/Model/ResourceModel Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,11 @@ protected function _beforeSave(AbstractModel $object)
95
95
}
96
96
97
97
/**
98
+ * Get block id.
99
+ *
98
100
* @param AbstractModel $object
99
101
* @param mixed $value
100
- * @param null $field
102
+ * @param string $field
101
103
* @return bool|int|string
102
104
* @throws LocalizedException
103
105
* @throws \Exception
@@ -187,7 +189,7 @@ public function getIsUniqueBlockToStores(AbstractModel $object)
187
189
$ isDefaultStore = $ this ->_storeManager ->isSingleStoreMode ()
188
190
|| array_search (Store::DEFAULT_STORE_ID , $ stores ) !== false ;
189
191
190
- if (!$ isDefaultStore ) {
192
+ if (!$ isDefaultStore ) {
191
193
$ stores [] = Store::DEFAULT_STORE_ID ;
192
194
}
193
195
@@ -200,7 +202,7 @@ public function getIsUniqueBlockToStores(AbstractModel $object)
200
202
)
201
203
->where ('cb.identifier = ? ' , $ object ->getData ('identifier ' ));
202
204
203
- if (!$ isDefaultStore ) {
205
+ if (!$ isDefaultStore ) {
204
206
$ select ->where ('cbs.store_id IN (?) ' , $ stores );
205
207
}
206
208
@@ -241,6 +243,8 @@ public function lookupStoreIds($id)
241
243
}
242
244
243
245
/**
246
+ * Save an object.
247
+ *
244
248
* @param AbstractModel $object
245
249
* @return $this
246
250
* @throws \Exception
You can’t perform that action at this time.
0 commit comments