Skip to content

Commit ee34db9

Browse files
committed
tests fix
1 parent 78abf3b commit ee34db9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ public function get(int $valueId): ?string
4040
$select = $this->connection->select()
4141
->from($this->connection->getTableName('eav_attribute_option_value'), 'value')
4242
->where('value_id = ?', $valueId);
43-
return $this->connection->fetchOne($select);
43+
44+
$result = $this->connection->fetchOne($select);
45+
46+
if ($result !== false) {
47+
return $result;
48+
}
49+
50+
return null;
4451
}
4552
}

0 commit comments

Comments
 (0)