Skip to content

Commit fa540f2

Browse files
authored
ENGCOM-4518: [Backport] #13612 Fixed-Quantity_and_stock_status when visibility set to storefront throwing exception #21802
2 parents 71e61a7 + 2710f87 commit fa540f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Source/AbstractSource.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,15 @@ public function getOptionText($value)
7373
}
7474
}
7575
// End
76-
if (isset($options[$value])) {
76+
if (is_scalar($value) && isset($options[$value])) {
7777
return $options[$value];
7878
}
7979
return false;
8080
}
8181

8282
/**
83+
* Get option id.
84+
*
8385
* @param string $value
8486
* @return null|string
8587
*/

0 commit comments

Comments
 (0)