diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-15 07:48:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-15 07:48:37 +0000 |
commit | ee1d9647b86f9e886cea07abe6e4e4126352a018 (patch) | |
tree | 42463aa055c9f767f66832729d90d73920cfe29b /app | |
parent | 5891a873fbf5fe934c1d5fef2d4c763c604d4c32 (diff) | |
download | redmine-ee1d9647b86f9e886cea07abe6e4e4126352a018.tar.gz redmine-ee1d9647b86f9e886cea07abe6e4e4126352a018.zip |
Raised group name maximum length to 255 characters (#13174).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11392 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/group.rb | 2 | ||||
-rw-r--r-- | app/views/groups/_form.html.erb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 23d2e39b4..fd0f583f7 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -25,7 +25,7 @@ class Group < Principal validates_presence_of :lastname validates_uniqueness_of :lastname, :case_sensitive => false - validates_length_of :lastname, :maximum => 30 + validates_length_of :lastname, :maximum => 255 before_destroy :remove_references_before_destroy diff --git a/app/views/groups/_form.html.erb b/app/views/groups/_form.html.erb index a5cb5d068..7dc224061 100644 --- a/app/views/groups/_form.html.erb +++ b/app/views/groups/_form.html.erb @@ -1,7 +1,7 @@ <%= error_messages_for @group %> <div class="box tabular"> - <p><%= f.text_field :name %></p> + <p><%= f.text_field :name, :required => true, :size => 60 %></p> <% @group.custom_field_values.each do |value| %> <p><%= custom_field_tag_with_label :group, value %></p> <% end %> |