Skip to content

Commit 5d190c8

Browse files
committed
Merge branch 'MAGETWO-48642' of github.corp.magento.com:magento-troll/magento2ce into MAGETWO-43102
2 parents 78af2a1 + 5141635 commit 5d190c8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Category/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,7 @@ public function imagePreprocessing($data)
234234
{
235235
if (!isset($_FILES) || (isset($_FILES['image']) && $_FILES['image']['name'] === '' )) {
236236
unset($data['general']['image']);
237-
if (
238-
isset($data['general']['savedImage']['delete']) &&
237+
if (isset($data['general']['savedImage']['delete']) &&
239238
$data['general']['savedImage']['delete']
240239
) {
241240
$data['general']['image']['delete'] = $data['general']['savedImage']['delete'];

app/code/Magento/Catalog/Model/Category.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,9 @@ public function getStoreIds()
571571
public function getStoreId()
572572
{
573573
if ($this->hasData('store_id')) {
574-
return $this->_getData('store_id');
574+
return (int)$this->_getData('store_id');
575575
}
576-
return $this->_storeManager->getStore()->getId();
576+
return (int)$this->_storeManager->getStore()->getId();
577577
}
578578

579579
/**

0 commit comments

Comments
 (0)