Skip to content

Commit c337d8c

Browse files
committed
Fix Manage Post > Add New Post generate error #22
1 parent b6f31a3 commit c337d8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Block/Adminhtml/Category/Edit/Tab/Main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function _prepareForm()
138138
'hidden',
139139
['name' => 'store_ids[]', 'value' => $this->_storeManager->getStore(true)->getId()]
140140
);
141-
$model->setStoreIds([$this->_storeManager->getStore(true)->getId()]);
141+
$model->setStoreIds($this->_storeManager->getStore(true)->getId());
142142
}
143143

144144
$field = $fieldset->addField(

Block/Adminhtml/Post/Edit/Tab/Main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function _prepareForm()
138138
'hidden',
139139
['name' => 'post[store_ids][]', 'value' => $this->_storeManager->getStore(true)->getId()]
140140
);
141-
$model->setStoreIds([$this->_storeManager->getStore(true)->getId()]);
141+
$model->setStoreIds($this->_storeManager->getStore(true)->getId());
142142
}
143143

144144
$field = $fieldset->addField(

0 commit comments

Comments
 (0)