From 65a91d13a0ef8a08f2cb118ea0bda716910db6a9 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sat, 19 Mar 2022 08:08:09 +0000 Subject: [PATCH] Fix file drop feature not working in @documents#new@ (#36686). git-svn-id: http://svn.redmine.org/redmine/trunk@21466 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/documents/_form.html.erb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb index ba783deb7..139afe24a 100644 --- a/app/views/documents/_form.html.erb +++ b/app/views/documents/_form.html.erb @@ -11,12 +11,10 @@ <% @document.custom_field_values.each do |value| %>

<%= custom_field_tag_with_label :document, value %>

<% end %> + + <% if @document.new_record? %> +

<%= render :partial => 'attachments/form', :locals => {:container => @document} %>

+ <% end %> <%= wikitoolbar_for 'document_description' %> - -<% if @document.new_record? %> -
-

<%= render :partial => 'attachments/form', :locals => {:container => @document} %>

-
-<% end %>