From aa214d368f49357efcbd24646dd5019df98ec23b 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 3708bc872cb..3ead620346a 100644
--- a/app/controllers/consultation/admin.php
+++ b/app/controllers/consultation/admin.php
@@ -797,20 +797,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