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 78abf3b commit ee34db9Copy full SHA for ee34db9
app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/OptionValueProvider.php
@@ -40,6 +40,13 @@ public function get(int $valueId): ?string
40
$select = $this->connection->select()
41
->from($this->connection->getTableName('eav_attribute_option_value'), 'value')
42
->where('value_id = ?', $valueId);
43
- return $this->connection->fetchOne($select);
+
44
+ $result = $this->connection->fetchOne($select);
45
46
+ if ($result !== false) {
47
+ return $result;
48
+ }
49
50
+ return null;
51
}
52
0 commit comments