diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2023-07-14 18:06:24 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-07-14 18:06:24 +0000 |
| commit | b1f3738705bf34205f02be502546118736492e82 (patch) | |
| tree | be1a754681386eea155a652c00aa04b984c0d92c | |
| parent | f820a78397c502125dccdec02add2c3f62709bd0 (diff) | |
Resolve "AdminCourseAction nicht komplett kompatibel zur neuen Veranstaltungsadminansicht"
Closes #2845
Merge request studip/studip!1928
| -rw-r--r-- | app/controllers/admin/courses.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/admin/courses.php b/app/controllers/admin/courses.php index 4bada95..e1c53e7 100644 --- a/app/controllers/admin/courses.php +++ b/app/controllers/admin/courses.php @@ -494,14 +494,16 @@ class Admin_CoursesController extends AuthenticatedController $data['buttons_top'] = '<label>'._('Alle auswählen').'<input type="checkbox" data-proxyfor=".course-admin td:last-child :checkbox"></label>'; if ($multimode instanceof Flexi_Template) { $data['buttons_bottom'] = $multimode->render(); + } elseif ($multimode instanceof \Studip\Button) { + $data['buttons_bottom'] = (string) $multimode; } elseif (is_string($multimode)) { $data['buttons_bottom'] = (string) \Studip\Button::create($multimode, '', ['formaction' => $plugin->getAdminActionURL()]); } else { $data['buttons_bottom'] = (string) \Studip\Button::create(_('Speichern'), '', ['formaction' => $plugin->getAdminActionURL()]); } } + break; } - break; } } if (!isset($data['buttons_top'])) { |
