-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditions with multi-values (is one of/is not one of) dosen`t work #8740
Comments
I can confirm this is an issue and is lacking attention. I used SKU attribute and "is one of". @deiserh please check this fix -> #8246 which helps saving the multiple selections. HOWEVER, not all of my selections are saving yet. In issue #8215 which seems like this is the same issue, @miakusha states that you cannot use SKU as a Catalog Rule condition, however, it appears that you can. But when using SKU as a Catalog Rule Condition it does not apply to ALL the items for some reason (some are applied, and some are not). Seems buggy. To clarify my issue after adding the above mentioned #8246 "fix": Steps to Reproduce
Expected result Actual result |
I can confirm that the fix #8246 works for the multiselect problem (tested in 2.1.7) I have NOT tried the SKU scenario yet though |
duplicate of #7723 |
@deiserh, thank you for your report. |
Hello @magento-engcom-team magento2/app/code/Magento/Rule/Model/Condition/AbstractCondition.php Lines 366 to 372 in f3f8975
If attribute is multiselect then value is array, and this piece of code will return to process only first element |
hi @LeonidTomashevskyAmasty, you're right. |
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: