File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Ui/Config Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ public function __construct(
84
84
$ this ->componentName = $ componentName ;
85
85
$ this ->argumentInterpreter = $ argumentInterpreter ;
86
86
$ this ->cacheId = static ::CACHE_ID . '_ ' . $ componentName ;
87
- $ this ->initData ();
88
87
}
89
88
90
89
/**
@@ -121,7 +120,7 @@ private function initData()
121
120
*/
122
121
public function merge (array $ config )
123
122
{
124
- $ this ->data = array_replace_recursive ($ this ->data , $ config );
123
+ $ this ->data = array_replace_recursive ($ this ->get () , $ config );
125
124
}
126
125
127
126
/**
@@ -133,6 +132,9 @@ public function merge(array $config)
133
132
*/
134
133
public function get ($ path = null , $ default = null )
135
134
{
135
+ if (empty ($ this ->data )) {
136
+ $ this ->initData ();
137
+ }
136
138
if ($ path === null ) {
137
139
return $ this ->data ;
138
140
}
You can’t perform that action at this time.
0 commit comments