From 05ca7d7d41f2df89311adaf267d0ccc34440424d Mon Sep 17 00:00:00 2001 From: NicoDucou Date: Sat, 18 May 2024 08:46:05 +0200 Subject: [PATCH] Session: fix name to title conversion to avoid blank option in select - refs BT#21724 --- public/main/session/add_students_to_session.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/main/session/add_students_to_session.php b/public/main/session/add_students_to_session.php index 1649f9e571..d28e915e2f 100644 --- a/public/main/session/add_students_to_session.php +++ b/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 = []; foreach ($session_list as $session) { - $sessionList[$session['id']] = $session['name']; + $sessionList[$session['id']] = $session['title']; } Display::display_header($tool_name); ?>