Skip to content

Commit 2196f95

Browse files
committed
ACP2E-2974
1 parent a7c7602 commit 2196f95

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

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

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

61-
return null;
58+
return $records[$storeId]['value'] ?? $records[0]['value'];
6259
}
6360
}

0 commit comments

Comments
 (0)