Skip to content

Commit 791bb8e

Browse files
committed
ACPT-826
1 parent 8a6e742 commit 791bb8e

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

app/code/Magento/AsyncConfig/Plugin/Controller/System/Config/SaveAsyncConfigPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function aroundExecute(Save $subject, callable $proceed)
8383
$configData = $subject->getConfigData();
8484
$this->asyncConfigPublisher->saveConfigData($configData);
8585
$this->messageManager->addSuccess(__('Configuration changes will be applied by consumer soon.'));
86-
$subject->_saveState($subject->getRequest()->getPost('config_state'));
86+
$subject->saveState($subject->getRequest()->getPost('config_state'));
8787
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
8888
$resultRedirect = $this->resultRedirectFactory->create();
8989
return $resultRedirect->setPath(

app/code/Magento/Config/Controller/Adminhtml/System/AbstractConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ protected function _isAllowed()
8989
* @param array $configState
9090
* @return bool
9191
*/
92-
public function _saveState($configState = [])
92+
protected function _saveState($configState = [])
9393
{
9494
if (is_array($configState)) {
9595
$configState = $this->sanitizeConfigState($configState);

app/code/Magento/Config/Controller/Adminhtml/System/Config/Save.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,17 @@ public function __construct(
5757
$this->string = $string;
5858
}
5959

60+
/**
61+
* Save state of configuration field sets
62+
*
63+
* @param array $configState
64+
* @return bool
65+
*/
66+
public function saveState($configState)
67+
{
68+
return $this->_saveState($configState);
69+
}
70+
6071
/**
6172
* @inheritdoc
6273
*/

0 commit comments

Comments
 (0)