Session: fix name to title conversion to avoid blank option in select - refs BT#21724

pull/5524/head
NicoDucou 6 months ago
parent 0ba006fb51
commit 05ca7d7d41
  1. 4
      public/main/session/add_students_to_session.php

@ -45,10 +45,10 @@ if (isset($_POST['form_sent']) && $_POST['form_sent']) {
} }
} }
$session_list = SessionManager::get_sessions_list([], ['name']); $session_list = SessionManager::get_sessions_list([], ['title']);
$sessionList = []; $sessionList = [];
foreach ($session_list as $session) { foreach ($session_list as $session) {
$sessionList[$session['id']] = $session['name']; $sessionList[$session['id']] = $session['title'];
} }
Display::display_header($tool_name); Display::display_header($tool_name);
?> ?>

Loading…
Cancel
Save