diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-09 15:36:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-09 15:36:47 +0000 |
commit | 66594d46b20d5d30ca7820cc69c1652ee9884ad9 (patch) | |
tree | e38c76c5d972784ee0066d8354ef139f2f6cdf58 /app | |
parent | 0ec13848b0ca16291ddd9c2959efca2241456b0a (diff) | |
download | redmine-66594d46b20d5d30ca7820cc69c1652ee9884ad9.tar.gz redmine-66594d46b20d5d30ca7820cc69c1652ee9884ad9.zip |
Allow longer version names (#711, closes #712).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1220 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/version.rb | 2 | ||||
-rw-r--r-- | app/views/versions/_form.rhtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index f9395c5d9..183500485 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -23,7 +23,7 @@ class Version < 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 validates_format_of :effective_date, :with => /^\d{4}-\d{2}-\d{2}$/, :message => :activerecord_error_not_a_date, :allow_nil => true def start_date diff --git a/app/views/versions/_form.rhtml b/app/views/versions/_form.rhtml index cd3afcccd..e18f912bf 100644 --- a/app/views/versions/_form.rhtml +++ b/app/views/versions/_form.rhtml @@ -1,7 +1,7 @@ <%= error_messages_for 'version' %> <div class="box"> -<p><%= f.text_field :name, :size => 20, :required => true %></p> +<p><%= f.text_field :name, :size => 60, :required => true %></p> <p><%= f.text_field :description, :size => 60 %></p> <p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p> <p><%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p> |