fix error

This commit is contained in:
chiu 2021-11-15 04:40:28 +00:00
parent 3867b8fc69
commit 941641a300
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@
</li> </li>
<% end %> <% end %>
</ul> </ul>
<%= hidden_field_tag 'event_news[event_news_files_attributes][0][choose_lang][]', '' %> <%= hidden_field_tag "event_news[event_news_files_attributes][#{( form_file.new_record? ? 'new_event_news_files' : "#{i}" )}][choose_lang][]", '' %>
</span> </span>
<% if form_file.new_record? %> <% if form_file.new_record? %>
<span class="delete_file add-on btn" title="<%= t(:delete_) %>"> <span class="delete_file add-on btn" title="<%= t(:delete_) %>">