summaryrefslogtreecommitdiffstats
path: root/app/views/documents/_form.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/documents/_form.html.erb')
-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 %>