Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit ade399b

Browse files
author
Bohdan Korablov
committed
MAGETWO-86656: app:config:dump doesn't work if run this command twice
1 parent bbceef8 commit ade399b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Config/Model/Config/Importer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,14 @@ public function import(array $data)
123123
if ($this->scopeConfig instanceof Config) {
124124
$this->scopeConfig->clean();
125125
}
126+
126127
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, function () use ($changedData, $data) {
127128
$this->scope->setCurrentScope(Area::AREA_ADMINHTML);
128129

129130
// Invoke saving of new values.
130131
$this->saveProcessor->process($changedData);
131132
});
133+
132134
$this->scope->setCurrentScope($currentScope);
133135
$this->flagManager->saveFlag(static::FLAG_CODE, $data);
134136
} catch (\Exception $e) {

0 commit comments

Comments
 (0)