Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Customer Custom Field Rule evaluates wrong on multiple-selection custom fields
issue: NEXT-23252
author: Jan Emig
author_email: j.emig@one-dot.de
author_github: @Xnaff
---
- Changed method
match
inShopware\Core\Framework\Rule\CustomFieldRule
to fix the validation of multi select fields - Changed
isFloat
,getExpectedValue
,getValue
andfloatMatch
methods inShopware\Core\Framework\Rule\CustomFieldRule
to public function to be able to use it inShopware\Core\Checkout\Cart\Rule\LineItemCustomFieldRule
to prevent duplicate code - Changed
Shopware\Core\Checkout\Cart\Rule\LineItemCustomFieldRule
to allow the usage of multi select fields - Added method
isArray
inShopware\Core\Framework\Rule\CustomFieldRule
to validate if the field value is an array from a multi select field - Added method
arrayMatch
inShopware\Core\Framework\Rule\CustomFieldRule
to validate the field value against the rule value if the field value is an array from a multi select field