aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/settings
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-06-18 12:18:17 +0000
committerThomas Hackl <hackl@data-quest.de>2024-06-18 12:18:17 +0000
commit26e02e32841671fa162cf11cb0fa925aa4452da5 (patch)
treee6dc3f0264f966b6095d967828f7971595d27060 /app/controllers/settings
parentab3352dec1bc28b5b828b35afb5f2d974d6c3fb1 (diff)
Resolve "Neues Benachrichtungssystem für Stud.IP"
Closes #660 Merge request studip/studip!2557
Diffstat (limited to 'app/controllers/settings')
-rw-r--r--app/controllers/settings/general.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/settings/general.php b/app/controllers/settings/general.php
index 734cca1..0e8ec70 100644
--- a/app/controllers/settings/general.php
+++ b/app/controllers/settings/general.php
@@ -44,6 +44,7 @@ class Settings_GeneralController extends Settings_SettingsController
public function index_action()
{
$this->user_language = getUserLanguage($this->user->id);
+ $this->notifications_placement = User::findCurrent()->getConfiguration()->SYSTEM_NOTIFICATIONS_PLACEMENT;
}
/**
@@ -80,6 +81,7 @@ class Settings_GeneralController extends Settings_SettingsController
} else {
PersonalNotifications::deactivateAudioFeedback($this->user->id);
}
+ $this->config->store('SYSTEM_NOTIFICATIONS_PLACEMENT', Request::get('system_notifications_placement'));
PageLayout::postSuccess(_('Die Einstellungen wurden gespeichert.'));
$this->redirect('settings/general');