From cd418d31e95ac804f2151c98716a5f80c9571a3a Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 21 Oct 2022 09:46:30 +0800 Subject: [PATCH] Fix bug. --- app/views/admin/patchfiles/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/patchfiles/index.html.erb b/app/views/admin/patchfiles/index.html.erb index bfc90d3..9541d6b 100644 --- a/app/views/admin/patchfiles/index.html.erb +++ b/app/views/admin/patchfiles/index.html.erb @@ -60,7 +60,7 @@ <% - default_file_show = @file_to_show..fields['file_show'].options[:default] + default_file_show = @file_to_show.fields['file_show'].options[:default] if @file_to_show.file_show.count != default_file_show.count @file_to_show.file_show = default_file_show @file_to_show.save