From 1ccc921cb5ad5f992b92b23a13d35afec0fa8d61 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Wed, 21 Dec 2022 14:49:05 +0000
Subject: [PATCH] fix relocate after storing of cycle, fixes #1941

Closes #1941

Merge request studip/studip!1269
---
 app/controllers/course/timesrooms.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/course/timesrooms.php b/app/controllers/course/timesrooms.php
index 6b483854f64..887ab112a7c 100644
--- a/app/controllers/course/timesrooms.php
+++ b/app/controllers/course/timesrooms.php
@@ -1117,7 +1117,7 @@ class Course_TimesroomsController extends AuthenticatedController
             words('day start_time end_time description cycle startWeek teacher_sws fromDialog course_type')
         );
 
-        $this->linkAttributes   = ['fromDialog' => Request::isXhr() ? 1 : 0];
+        $this->linkAttributes = ['fromDialog' => Request::bool('fromDialog')];
 
         $this->cycle = new SeminarCycleDate($cycle_id);
 
-- 
GitLab