Skip to content
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

Only localized element types should get the site condition rule #12601

Merged

Conversation

lukeholder
Copy link
Member

@lukeholder lukeholder commented Feb 1, 2023

When using a condition builder with a non-localised element type, the "Site" condition rule should not be available for use.

This PR unsets the site rule from the condition if the element type is not localized

…ents.

- Allows a condition like `AddressCondition` to set its default element type property without it being overridden on instantiation.

- Unsets the site rule from the condition if the element type is localized

- Set the default element types for user condition and address condition for now,  as they are the only non localized element types.
@lukeholder lukeholder changed the title Remove the site condition from being available for non localized element types Remove the site rule from being available for non localized element types Feb 1, 2023
@lukeholder lukeholder changed the title Remove the site rule from being available for non localized element types Stop the site condition rule from being available to non localized element types Feb 1, 2023
@lukeholder lukeholder changed the title Stop the site condition rule from being available to non localized element types Only localized element types should get the site condition rule Feb 1, 2023
@lukeholder lukeholder marked this pull request as ready for review February 16, 2023 05:40
@lukeholder lukeholder requested a review from a team as a code owner February 16, 2023 05:40
@brandonkelly brandonkelly merged commit 56a9912 into develop Feb 17, 2023
@brandonkelly brandonkelly deleted the bugfix/unlocalized-element-types-dont-need-site-rule branch February 17, 2023 17:56
@brandonkelly
Copy link
Member

Craft 4.3.10 is out with this change.

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