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 ffbcc7e commit 54c54e7Copy full SHA for 54c54e7
app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/OptionValueProvider.php
@@ -51,11 +51,12 @@ public function get(int $optionId): ?string
51
->where('option_id = ?', $optionId);
52
53
$records = $this->connection->fetchAssoc($select);
54
- $result = $records[$storeId]['value'];
55
-
56
- if ($result !== false) {
57
- return $result;
+ if (!empty($records)) {
+ return $records[$storeId]['value'];
58
}
+// if ($result !== false) {
+// return $result;
59
+// }
60
61
return null;
62
0 commit comments