Skip to content

Commit 54c54e7

Browse files
committed
ACP2E-2974
1 parent ffbcc7e commit 54c54e7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/OptionValueProvider.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ public function get(int $optionId): ?string
5151
->where('option_id = ?', $optionId);
5252

5353
$records = $this->connection->fetchAssoc($select);
54-
$result = $records[$storeId]['value'];
55-
56-
if ($result !== false) {
57-
return $result;
54+
if (!empty($records)) {
55+
return $records[$storeId]['value'];
5856
}
57+
// if ($result !== false) {
58+
// return $result;
59+
// }
5960

6061
return null;
6162
}

0 commit comments

Comments
 (0)