Skip to content

Commit 6e881fa

Browse files
committed
ACP2E-1512: Env variable config not working for store views with capital letters in the code
fixed multiple issues from mftf tests
1 parent 2599480 commit 6e881fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Store/App/Config/Source/RuntimeConfigSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function getEntities($table, $keyField)
102102
);
103103

104104
foreach ($entities as $entity) {
105-
$data[$entity[$keyField]] = $entity;
105+
$data[strtolower($entity[$keyField])] = $entity;
106106
}
107107

108108
return $data;

app/code/Magento/Store/App/Config/Type/Scopes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function get($path = '')
7272
$path = $this->convertIdPathToCodePath($patchChunks);
7373
}
7474

75-
return $this->data->getData($path);
75+
return $this->data->getData(strtolower($path));
7676
}
7777

7878
/**

0 commit comments

Comments
 (0)