From 046b83d92cb1a93c31b31820b7bbfd79a2eac5f4 Mon Sep 17 00:00:00 2001
From: David Siegfried <david.siegfried@uni-vechta.de>
Date: Mon, 27 Jun 2022 09:35:51 +0000
Subject: [PATCH] insert sharewidget at end of the sidebar, closes #1208

Closes #1208

Merge request studip/studip!731
---
 app/controllers/resources/search.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/resources/search.php b/app/controllers/resources/search.php
index 3b89afdefc8..c0cf6527666 100644
--- a/app/controllers/resources/search.php
+++ b/app/controllers/resources/search.php
@@ -104,7 +104,7 @@ class Resources_SearchController extends AuthenticatedController
                     $_SERVER['REQUEST_URI'],
                     Icon::create('group')
                 );
-                $sidebar->insertWidget($actions, ':first');
+                $sidebar->addWidget($actions);
 
                 //Check if the time range criteria has been set.
                 //If so, set the begin date as parameter for the
-- 
GitLab