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

Make nc_notification mandatory for newsletterSubscribeNotificationCenter #366

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

fritzmg
Copy link
Collaborator

@fritzmg fritzmg commented Sep 27, 2024

See #365 (comment)

The SubscribeController does not check if a notification was selected:

$this->notificationCenter->sendNotification((int) $this->nc_notification, $tokens);

It should not have to, as it does not make sense to use the NC specific module without a notification anyway. Thus instead the tl_module.nc_notification field should simply be mandatory for this front end module.

@fritzmg fritzmg added the bug label Sep 27, 2024
@fritzmg fritzmg self-assigned this Sep 27, 2024
@Toflar Toflar merged commit b9db9a5 into main Sep 27, 2024
8 checks passed
@Toflar Toflar deleted the fix/newsletter-subscribe-mandatory branch September 27, 2024 12:59
@Toflar
Copy link
Member

Toflar commented Sep 27, 2024

Thanks @fritzmg

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

Successfully merging this pull request may close these issues.

2 participants