File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Test/Unit/Block/System/Config Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -427,21 +427,21 @@ private function getFieldData(\Magento\Config\Model\Config\Structure\Element\Fie
427
427
if ($ data === null ) {
428
428
if (array_key_exists ($ path , $ this ->_configData )) {
429
429
$ data = $ this ->_configData [$ path ];
430
-
431
- if ($ field ->hasBackendModel ()) {
432
- $ backendModel = $ field ->getBackendModel ();
433
- $ backendModel ->setPath ($ path )
434
- ->setValue ($ data )
435
- ->setWebsite ($ this ->getWebsiteCode ())
436
- ->setStore ($ this ->getStoreCode ())
437
- ->afterLoad ();
438
- $ data = $ backendModel ->getValue ();
439
- }
440
430
} elseif ($ field ->getConfigPath () !== null ) {
441
431
$ data = $ this ->getConfigValue ($ field ->getConfigPath ());
442
432
} else {
443
433
$ data = $ this ->getConfigValue ($ path );
444
434
}
435
+
436
+ if ($ field ->hasBackendModel ()) {
437
+ $ backendModel = $ field ->getBackendModel ();
438
+ $ backendModel ->setPath ($ path )
439
+ ->setValue ($ data )
440
+ ->setWebsite ($ this ->getWebsiteCode ())
441
+ ->setStore ($ this ->getStoreCode ())
442
+ ->afterLoad ();
443
+ $ data = $ backendModel ->getValue ();
444
+ }
445
445
}
446
446
447
447
return $ data ;
Original file line number Diff line number Diff line change @@ -676,7 +676,7 @@ public function initFieldsDataProvider()
676
676
true ,
677
677
'Config Value ' ,
678
678
null ,
679
- 0 ,
679
+ 1 ,
680
680
true ,
681
681
false ,
682
682
true
You can’t perform that action at this time.
0 commit comments