From 6b1fa23265fcfe27775df009e719ff7ec27b65eb Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 19 Nov 2019 17:35:00 +0800 Subject: [PATCH] fix the problem that file being deleted by js in orbit4-5 --- app/views/admin/seminars/_form_file.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/seminars/_form_file.html.erb b/app/views/admin/seminars/_form_file.html.erb index 8628623..a1ab19a 100644 --- a/app/views/admin/seminars/_form_file.html.erb +++ b/app/views/admin/seminars/_form_file.html.erb @@ -1,7 +1,7 @@ <% if form_file.new_record? %>
<% else %> -
+
<% if form_file.file.blank? %> <%= t(:no_file) %> <% else %>