Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
skip saving the old mailing setting for category notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel André Eikeland committed May 4, 2016
1 parent 5a36ecf commit dbb0a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/mailing/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ public function listen_accountSaveNotificationSettings(framework\Event $event)
$category_key = self::NOTIFY_NEW_ISSUES_MY_PROJECTS_CATEGORY;

foreach ($notificationsettings as $setting => $description) {
if ($setting == $category_key) continue;
if ($request->hasParameter('mailing_' . $setting)) {
framework\Context::getUser()->setNotificationSetting($setting, true, 'mailing')->save();
} else {
Expand Down

0 comments on commit dbb0a4f

Please sign in to comment.