From 1fb473baba9e7cbb22dc0e7ccf26a37186a9c5d2 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Thu, 8 Sep 2022 09:06:15 +0000
Subject: [PATCH] fix sidebar links on consultation admin page, fixes #1564

Closes #1564

Merge request studip/studip!987
---
 app/controllers/consultation/admin.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/app/controllers/consultation/admin.php b/app/controllers/consultation/admin.php
index bd9f2e1f9e5..ef40862e017 100644
--- a/app/controllers/consultation/admin.php
+++ b/app/controllers/consultation/admin.php
@@ -795,20 +795,20 @@ class Consultation_AdminController extends ConsultationController
         $options->addCheckbox(
             _('Benachrichtungen über Buchungen'),
             $this->getUserConfig()->getValue('CONSULTATION_SEND_MESSAGES'),
-            $this->toggleURL('messages/1', $action === 'expired'),
-            $this->toggleURL('messages/0', $action === 'expired')
+            $this->toggleURL('messages', 1, $action === 'expired'),
+            $this->toggleURL('messages', 0, $action === 'expired')
         );
         $options->addCheckbox(
             _('Abgelaufene Terminblöcke automatisch löschen'),
             $config->CONSULTATION_GARBAGE_COLLECT,
-            $this->toggleURL('garbage/1', $action === 'expired'),
-            $this->toggleURL('garbage/0', $action === 'expired')
+            $this->toggleURL('garbage', 1, $action === 'expired'),
+            $this->toggleURL('garbage', 0, $action === 'expired')
         );
         $options->addCheckbox(
             _('Termine gruppiert anzeigen'),
             $this->getUserConfig()->getValue('CONSULTATION_SHOW_GROUPED'),
-            $this->toggleURL('grouped/1', $action === 'expired'),
-            $this->toggleURL('grouped/0', $action === 'expired')
+            $this->toggleURL('grouped', 1, $action === 'expired'),
+            $this->toggleURL('grouped', 0, $action === 'expired')
         );
 
         $export = $sidebar->addWidget(new ExportWidget());
-- 
GitLab