summaryrefslogtreecommitdiffstats
path: root/app/views/versions
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-16 07:06:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-16 07:06:51 +0000
commitd4fdd9c5b976be1cff51e305bf124dc1becd83f9 (patch)
treee54480bb7372c7888997501a8850cc0e3e9a5e3c /app/views/versions
parent7386ec037e14659d91c925925eaca3866fc75a8a (diff)
downloadredmine-d4fdd9c5b976be1cff51e305bf124dc1becd83f9.tar.gz
redmine-d4fdd9c5b976be1cff51e305bf124dc1becd83f9.zip
Adds maxlength to version name input (#27330).
Patch by Vasili Korol. git-svn-id: http://svn.redmine.org/redmine/trunk@17746 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/versions')
-rw-r--r--app/views/versions/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb
index ade741f26..58d3e336a 100644
--- a/app/views/versions/_form.html.erb
+++ b/app/views/versions/_form.html.erb
@@ -2,7 +2,7 @@
<%= error_messages_for 'version' %>
<div class="box tabular">
-<p><%= f.text_field :name, :size => 60, :required => true %></p>
+<p><%= f.text_field :name, :maxlength => 60, :size => 60, :required => true %></p>
<p><%= f.text_field :description, :size => 60 %></p>
<% unless @version.new_record? %>
<p><%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %></p>