File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
EncryptionKey/Setup/Patch/Data Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,10 @@ protected function _createEmptyElement(array $pathParts)
281
281
public function getFieldPathsByAttribute ($ attributeName , $ attributeValue )
282
282
{
283
283
$ result = [];
284
+ if (empty ($ this ->_data ['sections ' ])) {
285
+ return $ result ;
286
+ }
287
+
284
288
foreach ($ this ->_data ['sections ' ] as $ section ) {
285
289
if (!isset ($ section ['children ' ])) {
286
290
continue ;
Original file line number Diff line number Diff line change @@ -83,15 +83,10 @@ private function reEncryptSystemConfigurationValues()
83
83
84
84
$ this ->scope ->setCurrentScope (\Magento \Framework \App \Area::AREA_ADMINHTML );
85
85
86
- try {
87
- $ paths = $ this ->structure ->getFieldPathsByAttribute (
88
- 'backend_model ' ,
89
- \Magento \Config \Model \Config \Backend \Encrypted::class
90
- );
91
- } catch (\Exception $ e ) {
92
- // This is thrown during initial application installation
93
- return ;
94
- }
86
+ $ paths = $ this ->structure ->getFieldPathsByAttribute (
87
+ 'backend_model ' ,
88
+ \Magento \Config \Model \Config \Backend \Encrypted::class
89
+ );
95
90
96
91
$ this ->scope ->setCurrentScope ($ currentScope );
97
92
You can’t perform that action at this time.
0 commit comments