Skip to content
Snippets Groups Projects
Commit b1f37387 authored by Rasmus Fuhse's avatar Rasmus Fuhse Committed by David Siegfried
Browse files

Resolve "AdminCourseAction nicht komplett kompatibel zur neuen Veranstaltungsadminansicht"

Closes #2845

Merge request studip/studip!1928
parent f820a783
No related branches found
No related tags found
No related merge requests found
...@@ -494,14 +494,16 @@ class Admin_CoursesController extends AuthenticatedController ...@@ -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>'; $data['buttons_top'] = '<label>'._('Alle auswählen').'<input type="checkbox" data-proxyfor=".course-admin td:last-child :checkbox"></label>';
if ($multimode instanceof Flexi_Template) { if ($multimode instanceof Flexi_Template) {
$data['buttons_bottom'] = $multimode->render(); $data['buttons_bottom'] = $multimode->render();
} elseif ($multimode instanceof \Studip\Button) {
$data['buttons_bottom'] = (string) $multimode;
} elseif (is_string($multimode)) { } elseif (is_string($multimode)) {
$data['buttons_bottom'] = (string) \Studip\Button::create($multimode, '', ['formaction' => $plugin->getAdminActionURL()]); $data['buttons_bottom'] = (string) \Studip\Button::create($multimode, '', ['formaction' => $plugin->getAdminActionURL()]);
} else { } else {
$data['buttons_bottom'] = (string) \Studip\Button::create(_('Speichern'), '', ['formaction' => $plugin->getAdminActionURL()]); $data['buttons_bottom'] = (string) \Studip\Button::create(_('Speichern'), '', ['formaction' => $plugin->getAdminActionURL()]);
} }
} }
break;
} }
break;
} }
} }
if (!isset($data['buttons_top'])) { if (!isset($data['buttons_top'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment