File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
app/code/Magento/Config/Block/System/Config Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -337,22 +337,21 @@ protected function _initElement(
337
337
if (array_key_exists ($ path , $ this ->_configData )) {
338
338
$ data = $ this ->_configData [$ path ];
339
339
$ inherit = false ;
340
-
341
- if ($ field ->hasBackendModel ()) {
342
- $ backendModel = $ field ->getBackendModel ();
343
- $ backendModel ->setPath ($ path )
344
- ->setValue ($ data )
345
- ->setWebsite ($ this ->getWebsiteCode ())
346
- ->setStore ($ this ->getStoreCode ())
347
- ->afterLoad ();
348
- $ data = $ backendModel ->getValue ();
349
- }
350
-
351
340
} elseif ($ field ->getConfigPath () !== null ) {
352
341
$ data = $ this ->getConfigValue ($ field ->getConfigPath ());
353
342
} else {
354
343
$ data = $ this ->getConfigValue ($ path );
355
344
}
345
+
346
+ if ($ field ->hasBackendModel ()) {
347
+ $ backendModel = $ field ->getBackendModel ();
348
+ $ backendModel ->setPath ($ path )
349
+ ->setValue ($ data )
350
+ ->setWebsite ($ this ->getWebsiteCode ())
351
+ ->setStore ($ this ->getStoreCode ())
352
+ ->afterLoad ();
353
+ $ data = $ backendModel ->getValue ();
354
+ }
356
355
}
357
356
$ fieldRendererClass = $ field ->getFrontendModel ();
358
357
if ($ fieldRendererClass ) {
You can’t perform that action at this time.
0 commit comments