Skip to content

Commit

Permalink
Backport for Magento 2.2 - Fixes variables in configuration not being…
Browse files Browse the repository at this point in the history
… replaced with actual values in the backend form fields.

(cherry picked from commit a8f1729)
  • Loading branch information
hostep committed Apr 3, 2019
1 parent 592b86b commit 0b0fc92
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/code/Magento/Config/Block/System/Config/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ private function getFieldData(\Magento\Config\Model\Config\Structure\Element\Fie
$backendModel = $field->getBackendModel();
// Backend models which implement ProcessorInterface are processed by ScopeConfigInterface
if (!$backendModel instanceof ProcessorInterface) {
if (array_key_exists($path, $this->_configData)) {
$data = $this->_configData[$path];
}

$backendModel->setPath($path)
->setValue($data)
->setWebsite($this->getWebsiteCode())
Expand Down

0 comments on commit 0b0fc92

Please sign in to comment.