From fc9785034d097ead06b9ad216c4ddfdeb6ada9f0 Mon Sep 17 00:00:00 2001 From: bohung Date: Tue, 15 Sep 2020 17:12:42 +0800 Subject: [PATCH] Fix bug. --- app/views/admin/courses/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/courses/_form.html.erb b/app/views/admin/courses/_form.html.erb index 416afd1..d3ec6ae 100644 --- a/app/views/admin/courses/_form.html.erb +++ b/app/views/admin/courses/_form.html.erb @@ -65,7 +65,7 @@ <% files_hash = {} - ["selected_course_syllabus_file", "selected_course_progress_file", "selected_course_activity_file", "selected_course_multimedia_file", "selected_course_material_file", "selected_course_supplement_file", "selected_course_evaluation_file"].each do |file| + ["course_syllabus_file", "course_progress_file", "course_activity_file", "course_multimedia_file", "course_material_file", "course_supplement_file", "course_evaluation_file"].each do |file| hash = {} hash["html"] = add_attribute("form_file", f, file.pluralize.to_sym) hash["count"] = @course.send(file.pluralize).count rescue 0