-
Notifications
You must be signed in to change notification settings - Fork 3
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
Email settings user widget - can't subscribe user to list #1
Comments
Hm, that's weird. Creating mailing list should trigger creation of We'll remove this line so the record is always created correctly. Until then, please run |
This check caused lists without auto_subscribe not to have "unsubscribed" records. Features dependent on user subscriptions completeness were not able to subscribe user to the list, because it never appeared in their preferences. remp2020/crm-remp-mailer-module#1
As i see this is not problem with mailer but with mailer module. In EmailSettingsFormFactory is iteration only over userPreferences.
So if user has no record for list in mail_user_subscriptions then it is impossible to subscribe user via this widet to this list. |
After your fix in mailer i think this problem persists only on not auto subscribe lists. |
@ricco24 Reading When the new user is registered, CRM calls Register API to create these records (see highlighted lines): And when new newsletter is created in Mailer, it's handled by the handler I referenced before: It looks to me that there are only these two scenarios that can affect Are you still seeing the issue, after running the |
EmailSettingsFormFactory in formSucceeded loads only user preferences. So user can't be subscribed to new created mailing list because user doesn't have record in user_subscriptions table for this list.
The text was updated successfully, but these errors were encountered: