News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[2.1 RC2] Default notification settings

Started by Massl, April 05, 2019, 01:17:47 PM

Previous topic - Next topic

Massl

I don't understand if I'm wrong or it's a bug..

I configure notifications from the admin panel


but all new users have empty settings

Arantor

Was the user made after you changed the defaults? It won't override existing users choices.

Massl

Quote from: Arantor on April 05, 2019, 02:01:00 PM
Was the user made after you changed the defaults?

Yes, I also created new test users and I think it's a bug.

live627


live627

I found the problem.

./Register.php:518: setNotifyPrefs($memberID, array('announcements' => (int) !empty($_POST['notify_announcements'])));


Each new registrant gets that alert pref set, and that makes the user settings page retrieve only that single pref, ignoring all the defaults.



Advertisement: