From 7dd7140d62281e05c3745e57c16ee68614c29d20 Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Sun, 10 Nov 2024 18:06:35 -0700 Subject: [PATCH] Ensure all admin users stay unchecked after error. When adding a new course, and someone unchecks all admin users to be copied to the new course, ensure they stay unchecked if an error occurs and the page is reloaded. --- .../ContentGenerator/CourseAdmin/add_course_form.html.ep | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep b/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep index be5831547c..05c05b2bba 100644 --- a/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep +++ b/templates/ContentGenerator/CourseAdmin/add_course_form.html.ep @@ -49,7 +49,7 @@
@@ -211,6 +211,7 @@ - <%= hidden_field add_dbLayout => 'sql_single' =%> + <%= hidden_field add_dbLayout => 'sql_single' =%> + <%= hidden_field last_page_was_add_course => 1 =%> <%= submit_button maketext('Add Course'), name => 'add_course', class => 'btn btn-primary' =%> <% end =%>