Skip to content

Commit

Permalink
Merge pull request #1137 from romainruaud/fix_relevance-config-save
Browse files Browse the repository at this point in the history
Fix relevance config save.
  • Loading branch information
romainruaud authored Oct 17, 2018
2 parents 365d507 + 3a238bd commit cc87081
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class RelevanceConfig extends \Magento\Config\Model\Config
* @param StoreManagerInterface $storeManager Store Manager
* @param Containers $containersSource The Containers source model
* @param ScopePool $scopePool RelevanceConfiguration Scope Pool
* @param array $data The data
*/
public function __construct(
ReinitableConfigInterface $config,
Expand All @@ -71,11 +72,13 @@ public function __construct(
ValueFactory $configValueFactory,
StoreManagerInterface $storeManager,
Containers $containersSource,
ScopePool $scopePool
ScopePool $scopePool,
array $data = []
) {
$this->containersSource = $containersSource;
$this->fullConfig = true;
$this->scopePool = $scopePool;
$this->fullConfig = true;
$this->scopePool = $scopePool;

parent::__construct(
$config,
$eventManager,
Expand All @@ -85,6 +88,11 @@ public function __construct(
$configValueFactory,
$storeManager
);

// Mimic the call to \Magento\Framework\DataObject::__construct($data).
// $data parameter is intentionally omitted in parent::__construct() call because parent constructor is
// inconsistent between minor magento versions.
$this->_data = $data;
}

/**
Expand Down

0 comments on commit cc87081

Please sign in to comment.