Commit 47ca2faf authored by jplang's avatar jplang

Raises maximum length of category name to 60 (#20991).

git-svn-id: https://svn.redmine.org/redmine/trunk@14724 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 179ba707
......@@ -23,7 +23,7 @@ class IssueCategory < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name, :scope => [:project_id]
validates_length_of :name, :maximum => 30
validates_length_of :name, :maximum => 60
attr_protected :id
safe_attributes 'name', 'assigned_to_id'
......
<%= error_messages_for 'category' %>
<div class="box tabular">
<p><%= f.text_field :name, :size => 30, :required => true %></p>
<p><%= f.text_field :name, :size => 60, :required => true %></p>
<p><%= f.select :assigned_to_id, principals_options_for_select(@project.assignable_users, @category.assigned_to), :include_blank => true %></p>
</div>
class ChangeIssueCategoriesNameLimitTo60 < ActiveRecord::Migration
def self.up
change_column :issue_categories, :name, :string, :limit => 60, :default => "", :null => false
end
def self.down
change_column :issue_categories, :name, :string, :limit => 30, :default => "", :null => false
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment