summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-12-08 23:29:18 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-12-08 23:29:18 +0000
commit52f3cb58dc4dc0dc4375e6ba542a6f6891442ca0 (patch)
tree1934ce206a23cc6537b71e8a1dab5e0d13d92946
parentc7509aebc26e2cdd950627f25a764e895c28fcff (diff)
downloadredmine-52f3cb58dc4dc0dc4375e6ba542a6f6891442ca0.tar.gz
redmine-52f3cb58dc4dc0dc4375e6ba542a6f6891442ca0.zip
Fixes error when create a version with custom field of "File" type from Issue page (#40301).
Patch by Takenori TAKAKI (user:takenory). git-svn-id: https://svn.redmine.org/redmine/trunk@23363 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/versions/_new_modal.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/versions/_new_modal.html.erb b/app/views/versions/_new_modal.html.erb
index 052a73974..02c57abc4 100644
--- a/app/views/versions/_new_modal.html.erb
+++ b/app/views/versions/_new_modal.html.erb
@@ -1,6 +1,6 @@
<h3 class="title"><%=l(:label_version_new)%></h3>
-<%= labelled_form_for @version, :url => project_versions_path(@project), :remote => true do |f| %>
+<%= labelled_form_for @version, :url => project_versions_path(@project), :html => {:multipart => true}, :remote => true do |f| %>
<%= render :partial => 'versions/form', :locals => { :f => f } %>
<p class="buttons">
<%= submit_tag l(:button_create), :name => nil %>