summaryrefslogtreecommitdiffstats
path: root/app/views/timelog
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 17:02:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-20 17:02:11 +0000
commitd6d7563a4bcf952c255fafa9003b1e71ab1c4169 (patch)
tree3fc10c80324534ffa99c858e4b7f8130777e2c8f /app/views/timelog
parentf99535bba2840b141a6f836e152397bc706ddeb4 (diff)
downloadredmine-d6d7563a4bcf952c255fafa9003b1e71ab1c4169.tar.gz
redmine-d6d7563a4bcf952c255fafa9003b1e71ab1c4169.zip
Input fields restricted on length should have maxlength parameter set (#12833).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11233 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/timelog')
-rw-r--r--app/views/timelog/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/timelog/_form.html.erb b/app/views/timelog/_form.html.erb
index 48db3f27a..3256feaac 100644
--- a/app/views/timelog/_form.html.erb
+++ b/app/views/timelog/_form.html.erb
@@ -15,7 +15,7 @@
</p>
<p><%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %></p>
<p><%= f.text_field :hours, :size => 6, :required => true %></p>
- <p><%= f.text_field :comments, :size => 100 %></p>
+ <p><%= f.text_field :comments, :size => 100, :maxlength => 255 %></p>
<p><%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %></p>
<% @time_entry.custom_field_values.each do |value| %>
<p><%= custom_field_tag_with_label :time_entry, value %></p>