Skip to content

Commit 0cc117f

Browse files
committed
MAGETWO-69584: Command config:sensitive:set does not work on the cloud
1 parent 1a19ea5 commit 0cc117f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,13 @@ public function import(array $data)
122122
$this->scopeConfig->clean();
123123
}
124124

125-
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, function () use ($changedData) {
125+
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, function () use ($changedData, $data) {
126126
$this->scope->setCurrentScope(Area::AREA_ADMINHTML);
127127

128128
// Invoke saving of new values.
129129
$this->saveProcessor->process($changedData);
130+
$this->flagManager->saveFlag(static::FLAG_CODE, $data);
130131
});
131-
132-
$this->flagManager->saveFlag(static::FLAG_CODE, $data);
133132
} catch (\Exception $e) {
134133
throw new InvalidTransitionException(__('%1', $e->getMessage()), $e);
135134
} finally {

0 commit comments

Comments
 (0)