Skip to content

Commit

Permalink
ENGCOM-4518: [Backport] #13612 Fixed-Quantity_and_stock_status when v…
Browse files Browse the repository at this point in the history
…isibility set to storefront throwing exception #21802

 - Merge Pull Request #21802 from amol2jcommerce/magento2:2.2-develop-PR-port-20001
 - Merged commits:
   1. e7fb7fe
   2. dcf808e
  • Loading branch information
magento-engcom-team committed Mar 17, 2019
2 parents 71e61a7 + dcf808e commit 2710f87
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ public function getOptionText($value)
}
}
// End
if (isset($options[$value])) {
if (is_scalar($value) && isset($options[$value])) {
return $options[$value];
}
return false;
}

/**
* Get option id.
*
* @param string $value
* @return null|string
*/
Expand Down

0 comments on commit 2710f87

Please sign in to comment.