Skip to content

Commit 7cb1d4d

Browse files
committed
Merge remote-tracking branch 'origin/AC-6680' into spartans_pr_18042023
2 parents 456176c + 6d9f343 commit 7cb1d4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ public function __construct(ResourceConnection $connection)
3232
/**
3333
* Get EAV attribute option value by option id
3434
*
35-
* @param int $valueId
35+
* @param int $optionId
3636
* @return string|null
3737
*/
38-
public function get(int $valueId): ?string
38+
public function get(int $optionId): ?string
3939
{
4040
$select = $this->connection->select()
4141
->from($this->connection->getTableName('eav_attribute_option_value'), 'value')
42-
->where('value_id = ?', $valueId);
42+
->where('option_id = ?', $optionId);
4343

4444
$result = $this->connection->fetchOne($select);
4545

0 commit comments

Comments
 (0)