From: Jean-Philippe Lang Date: Sun, 20 Jan 2013 17:03:40 +0000 (+0000) Subject: Backported r11233 from trunk (#12833). X-Git-Tag: 2.2.2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4620b8b8dbe1aef539def28abac9f3f9f1cbf103;p=redmine.git Backported r11233 from trunk (#12833). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.2-stable@11234 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index 44de84a49..6a79d1e50 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -18,7 +18,7 @@ <% end %> <% if @issue.safe_attribute? 'subject' %> -

<%= f.text_field :subject, :size => 80, :required => true %>

+

<%= f.text_field :subject, :size => 80, :maxlength => 255, :required => true %>

<% end %> <% if @issue.safe_attribute? 'description' %> diff --git a/app/views/timelog/_form.html.erb b/app/views/timelog/_form.html.erb index 7ecdd446d..f8f04adb8 100644 --- a/app/views/timelog/_form.html.erb +++ b/app/views/timelog/_form.html.erb @@ -12,7 +12,7 @@

<%= f.text_field :issue_id, :size => 6 %> <%= h("#{@time_entry.issue.tracker.name} ##{@time_entry.issue.id}: #{@time_entry.issue.subject}") if @time_entry.issue %>

<%= f.text_field :spent_on, :size => 10, :required => true %><%= calendar_for('time_entry_spent_on') %>

<%= f.text_field :hours, :size => 6, :required => true %>

-

<%= f.text_field :comments, :size => 100 %>

+

<%= f.text_field :comments, :size => 100, :maxlength => 255 %>

<%= f.select :activity_id, activity_collection_for_select_options(@time_entry), :required => true %>

<% @time_entry.custom_field_values.each do |value| %>

<%= custom_field_tag_with_label :time_entry, value %>