aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/search/courses.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2024-04-04 09:55:35 +0000
committerThomas Hackl <hackl@data-quest.de>2024-04-04 09:55:35 +0000
commit8fcf1bd190159b71d201cdb41685c6fb22832f2e (patch)
tree6a6ae2349c61f0b6578db17cd0b5d866d528e7b6 /app/controllers/search/courses.php
parent64b40494949a59e161b4aed4a242c423e56d271b (diff)
Resolve "Umschalten der Ansicht im Veranstaltungsverzeichnis springt wieder an den Anfang zurück"
Closes #3867 Merge request studip/studip!2720
Diffstat (limited to 'app/controllers/search/courses.php')
-rw-r--r--app/controllers/search/courses.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/controllers/search/courses.php b/app/controllers/search/courses.php
index 6ae9d6a..eaf660b 100644
--- a/app/controllers/search/courses.php
+++ b/app/controllers/search/courses.php
@@ -110,17 +110,7 @@ class Search_CoursesController extends AuthenticatedController
}
$sidebar->addWidget(new VueWidget('search-widget'));
+ $sidebar->addWidget(new VueWidget('views-widget'));
$sidebar->addWidget(new VueWidget('export-widget'));
-
- $views = new ViewsWidget();
- $views->addLink(
- _('Als Liste'),
- $this->url_for('search/courses', array_merge($params, ['show_as' => 'list']))
- )->setActive($this->show_as === 'list');
- $views->addLink(
- _('Als Tabelle'),
- $this->url_for('search/courses', array_merge($params, ['show_as' => 'table']))
- )->setActive($this->show_as === 'table');
- $sidebar->addWidget($views);
}
}