summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 13:07:27 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-23 13:07:27 +0000
commit707ce0beeff88e0d9250f5390b0d0559e82cbed9 (patch)
tree0e11df6c9d1868c360d707411ed81781df2026d7 /app/views
parent4f217618af5055f42a96580553303f9e1275b113 (diff)
downloadredmine-707ce0beeff88e0d9250f5390b0d0559e82cbed9.tar.gz
redmine-707ce0beeff88e0d9250f5390b0d0559e82cbed9.zip
Preserve uploaded files when on news.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8942 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/news/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/news/_form.html.erb b/app/views/news/_form.html.erb
index 410df0e99..a0d2167a9 100644
--- a/app/views/news/_form.html.erb
+++ b/app/views/news/_form.html.erb
@@ -3,7 +3,7 @@
<p><%= f.text_field :title, :required => true, :size => 60 %></p>
<p><%= f.text_area :summary, :cols => 60, :rows => 2 %></p>
<p><%= f.text_area :description, :required => true, :cols => 60, :rows => 15, :class => 'wiki-edit' %></p>
-<p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form' %></p>
+<p id="attachments_form"><%= label_tag('attachments[1][file]', l(:label_attachment_plural))%><%= render :partial => 'attachments/form', :locals => {:container => @news} %></p>
</div>
<%= wikitoolbar_for 'news_description' %>