Skip to content

[4.x][5.x] Fixed condition rules losing their condition when being created #16676

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

Merged

Conversation

nfourtythree
Copy link
Contributor

@nfourtythree nfourtythree commented Feb 11, 2025

Description

Tracking through the creation of a condition rule. The condition is set in the config when creating a rule on a condition (mostly applicable in 5.x) however the condition can be lost when creating the new config for the rule.

This means when the new rule class is created it does not have the condition available.

This PR is applicable for both 4.x and 5.x.

Related issues

craftcms/commerce#3890

@nfourtythree nfourtythree self-assigned this Feb 11, 2025
@brandonkelly brandonkelly merged commit ad72556 into 4.x Feb 11, 2025
@brandonkelly brandonkelly deleted the bugfix/condition-rule-creation-losing-condition-attribute branch February 11, 2025 18:17
@brandonkelly
Copy link
Member

@nfourtythree Thanks! Craft 4.14.5 and 5.6.6 are out with this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants