From 1f82c51590365db3901910b5170968c209fad595 Mon Sep 17 00:00:00 2001 From: Rasmus Fuhse <fuhse@data-quest.de> Date: Wed, 12 Jul 2023 14:32:38 +0000 Subject: [PATCH] Resolve "Undefined callback STUDIP.AdminCourses.App.reloadCourse" Closes #2841 Merge request studip/studip!1925 --- app/controllers/admin/courses.php | 2 +- app/controllers/course/basicdata.php | 2 +- app/controllers/course/lvgselector.php | 2 +- app/controllers/course/study_areas.php | 2 +- app/controllers/course/timesrooms.php | 4 ++-- app/controllers/resources/room_request.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/controllers/admin/courses.php b/app/controllers/admin/courses.php index d806fc17a98..4bada95893c 100644 --- a/app/controllers/admin/courses.php +++ b/app/controllers/admin/courses.php @@ -1185,7 +1185,7 @@ class Admin_CoursesController extends AuthenticatedController $course->config->store('COURSE_ADMIN_NOTICE', trim(Request::get('notice'))); if (Request::isXhr()) { - $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.reloadCourse'); + $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.loadCourse'); $this->response->add_header('X-Dialog-Close', '1'); $this->render_text($course->id); } else { diff --git a/app/controllers/course/basicdata.php b/app/controllers/course/basicdata.php index 3bf10f730a6..b9ba67e793b 100644 --- a/app/controllers/course/basicdata.php +++ b/app/controllers/course/basicdata.php @@ -526,7 +526,7 @@ class Course_BasicdataController extends AuthenticatedController $this->flash['open'] = Request::get("open"); if (Request::isDialog()) { $this->response->add_header('X-Dialog-Close', 1); - $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.reloadCourse'); + $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.loadCourse'); $this->render_text($course_id); } else { $this->redirect($this->url_for('course/basicdata/view/' . $sem->getId())); diff --git a/app/controllers/course/lvgselector.php b/app/controllers/course/lvgselector.php index 60b090e81b7..2ef55ea00ed 100644 --- a/app/controllers/course/lvgselector.php +++ b/app/controllers/course/lvgselector.php @@ -198,7 +198,7 @@ class Course_LvgselectorController extends AuthenticatedController if (Request::isDialog()) { $this->response->add_header('X-Dialog-Close', 1); - $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.reloadCourse'); + $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.loadCourse'); $this->render_text($this->course_id); } else { $this->redirect($url); diff --git a/app/controllers/course/study_areas.php b/app/controllers/course/study_areas.php index 2993f569636..4de29dcfc71 100644 --- a/app/controllers/course/study_areas.php +++ b/app/controllers/course/study_areas.php @@ -151,7 +151,7 @@ class Course_StudyAreasController extends AuthenticatedController } if (Request::isDialog()) { $this->response->add_header('X-Dialog-Close', 1); - $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.reloadCourse'); + $this->response->add_header('X-Dialog-Execute', 'STUDIP.AdminCourses.App.loadCourse'); $this->render_text($this->course->id); } else { $this->redirect($url); diff --git a/app/controllers/course/timesrooms.php b/app/controllers/course/timesrooms.php index 7168bd7c99f..f1c2f8e0516 100644 --- a/app/controllers/course/timesrooms.php +++ b/app/controllers/course/timesrooms.php @@ -246,7 +246,7 @@ class Course_TimesroomsController extends AuthenticatedController unset($_SESSION['_checked_dates']); } if (Request::isDialog()) { - $this->response->add_header('X-Dialog-Execute', '{"func": "STUDIP.AdminCourses.App.reloadCourse", "payload": "'.$this->course->getId().'"}'); + $this->response->add_header('X-Dialog-Execute', '{"func": "STUDIP.AdminCourses.App.loadCourse", "payload": "'.$this->course->getId().'"}'); } } @@ -318,7 +318,7 @@ class Course_TimesroomsController extends AuthenticatedController $this->relocate(str_replace('_', '/', Request::option('origin'))); } if (Request::isDialog()) { - $this->response->add_header('X-Dialog-Execute', '{"func": "STUDIP.AdminCourses.App.reloadCourse", "payload": "'.$this->course->getId().'"}'); + $this->response->add_header('X-Dialog-Execute', '{"func": "STUDIP.AdminCourses.App.loadCourse", "payload": "'.$this->course->getId().'"}'); } } } diff --git a/app/controllers/resources/room_request.php b/app/controllers/resources/room_request.php index 03c65161229..f128f23bae3 100644 --- a/app/controllers/resources/room_request.php +++ b/app/controllers/resources/room_request.php @@ -1998,7 +1998,7 @@ class Resources_RoomRequestController extends AuthenticatedController // redirect to reload all infos and showing the most current ones $this->redirect('resources/room_request/resolve/' . $request_id); } elseif (Request::isDialog()) { - $this->response->add_header('X-Dialog-Execute', '{"func": "STUDIP.AdminCourses.App.reloadCourse", "payload": "'.Context::get()->id.'"}'); + $this->response->add_header('X-Dialog-Execute', '{"func": "STUDIP.AdminCourses.App.loadCourse", "payload": "'.Context::get()->id.'"}'); } } -- GitLab