We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c7602 commit 2196f95Copy full SHA for 2196f95
app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/OptionValueProvider.php
@@ -51,13 +51,10 @@ public function get(int $optionId): ?string
51
->where('option_id = ?', $optionId);
52
53
$records = $this->connection->fetchAssoc($select);
54
- if (!empty($records)) {
55
- return $records[$storeId]['value'];
+ if (empty($records)) {
+ return null;
56
}
57
-// if ($result !== false) {
58
-// return $result;
59
-// }
60
61
- return null;
+ return $records[$storeId]['value'] ?? $records[0]['value'];
62
63
0 commit comments