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

don't disable already disabled elements #1248

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Mar 7, 2023

Description

If an element is already disabled (globally or for the site), don’t disable it again and don't trigger an unnecessary resave.

A copy of: #736 + additional safeguard for disableForSite().

Related issues

#1241

@i-just i-just requested a review from angrybrad as a code owner March 7, 2023 11:13
@angrybrad angrybrad merged commit ced33b4 into v4 Mar 9, 2023
@angrybrad angrybrad deleted the bugfix/1241-only-disable-enabled-elements branch March 9, 2023 23:57
angrybrad added a commit that referenced this pull request Mar 9, 2023
angrybrad added a commit that referenced this pull request Mar 10, 2023
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