Skip to content

Commit

Permalink
Merge pull request #112 from magento-engcom/MAGETWO-89914
Browse files Browse the repository at this point in the history
MAGETWO-89914: Magento\Quote\Api\CartItemRepositoryTest::testGetList …
  • Loading branch information
Joan He authored Apr 2, 2018
2 parents 3a1a7eb + 26d313e commit 7fe2b76
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public function validateUserValue($values)
}
if (!$this->_isSingleSelection()) {
$valuesCollection = $option->getOptionValuesByOptionId($value, $this->getProduct()->getStoreId())->load();
if ($valuesCollection->count() != count($value)) {
$valueCount = is_array($value) ? count($value) : 1;
if ($valuesCollection->count() != $valueCount) {
$this->setIsValid(false);
throw new LocalizedException(
__(
Expand Down

0 comments on commit 7fe2b76

Please sign in to comment.