summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 13:10:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 13:10:51 +0000
commit8f24aa6c676b90f125adc9bf75ecc1cbdaf7a379 (patch)
tree39c10a974c438ca9b5cc52bdd0c4de544fc5fadc /app/views
parent3871cbc75c4ed8ad8501d77e09a740cfb0f7c7f8 (diff)
downloadredmine-8f24aa6c676b90f125adc9bf75ecc1cbdaf7a379.tar.gz
redmine-8f24aa6c676b90f125adc9bf75ecc1cbdaf7a379.zip
Preserve uploaded files when on documents.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8944 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/documents/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/documents/_form.html.erb b/app/views/documents/_form.html.erb
index 600bf66eb..b5b5fa410 100644
--- a/app/views/documents/_form.html.erb
+++ b/app/views/documents/_form.html.erb
@@ -10,6 +10,6 @@
<% if @document.new_record? %>
<div class="box tabular">
-<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form' %></p>
+<p><label><%=l(:label_attachment_plural)%></label><%= render :partial => 'attachments/form', :locals => {:container => @document} %></p>
</div>
<% end %>