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

Ignore disabled components when determining if a subscription is 'global' #4022

Merged

Conversation

langemeijer
Copy link
Contributor

When a user updates the components he wishes to get notifications for, the 'Globally subscribed' status is set when all components are checked. When disabled components exist, Globally subscribed' is never set because the checked components are compared to the result of Component::all() which includes disabled components.

Instead we need to compare to Component::enabled()->get() which will contain only the active components.

@jbrooksuk jbrooksuk merged commit 9a83bb3 into cachethq:2.4 Aug 1, 2020
@welcome
Copy link

welcome bot commented Aug 1, 2020

Hooray! Your first Pull Request was merged, here's to many more 🚀

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.

None yet

2 participants