You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a pricing rule with a purchasableCondition but leaving the select empty, you are able to save the pricing rule, but the generation of the catalog pricing will fall.
So or the saving of the pricing rule should fail when it's empty, or the value should fallback to an empty array.
In combination with plugins that are creating other purchaseble type's it's now impossible to create a pricing rule for a specific variant
What happened?
Description
When creating a pricing rule with a purchasableCondition but leaving the select empty, you are able to save the pricing rule, but the generation of the catalog pricing will fall.
So or the saving of the pricing rule should fail when it's empty, or the value should fallback to an empty array.
In combination with plugins that are creating other purchaseble type's it's now impossible to create a pricing rule for a specific variant
verbb/gift-voucher#129
Steps to reproduce
Expected behavior
Saving would fail with a validation error or select would fallback to an empty array
Actual behavior
Generation of catalog pricing fails
Craft CMS version
5.2.7
Craft Commerce version
5.0.12.2
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: