Skip to content

Commit

Permalink
Merge pull request #537 from magento-south/beta_fixes
Browse files Browse the repository at this point in the history
[South] Merchant Beta Fixes
  • Loading branch information
vpelipenko committed Aug 18, 2015
2 parents 57a09f4 + 64c91bb commit 30b2e3b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function create($identifier, $name = null, array $arguments = [])
$identifier,
$bundleComponents[$identifier]
);
$componentArguments = array_merge($componentArguments, $arguments);
$componentArguments = array_replace_recursive($componentArguments, $arguments);
if (!isset($componentArguments['context'])) {
$componentArguments['context'] = $this->contextFactory->create([
'namespace' => $identifier
Expand All @@ -164,7 +164,10 @@ public function create($identifier, $name = null, array $arguments = [])
$componentArguments['components'] = $components;

/** @var \Magento\Framework\View\Element\UiComponentInterface $component */
$component = $this->objectManager->create($className, array_merge($componentArguments, $arguments));
$component = $this->objectManager->create(
$className,
array_replace_recursive($componentArguments, $arguments)
);

return $component;
} else {
Expand Down

0 comments on commit 30b2e3b

Please sign in to comment.