Skip to content

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

Merged
brandonkelly merged 3 commits into4.xfrom
bugfix/condition-rule-creation-losing-condition-attribute
Feb 11, 2025
Merged

[4.x][5.x] Fixed condition rules losing their condition when being created#16676
brandonkelly merged 3 commits into4.xfrom
bugfix/condition-rule-creation-losing-condition-attribute

Conversation

@nfourtythree
Copy link
Copy Markdown
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
Copy Markdown
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