diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-21 08:54:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-21 08:54:02 +0000 |
commit | 199428804fd8129559b685a0d2ddc2f73f70deaa (patch) | |
tree | db77f207d5ef2be84c3cd642e213ba6369733a94 /app/models | |
parent | 6854827f1a1b98a60b6b1e91dd424277d72606db (diff) | |
download | redmine-199428804fd8129559b685a0d2ddc2f73f70deaa.tar.gz redmine-199428804fd8129559b685a0d2ddc2f73f70deaa.zip |
Fixed: invalid effective date (eg. 99999-01-01) causes an error on version edition screen.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1888 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/version.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index dc618af0f..e379f4b05 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -24,7 +24,7 @@ class Version < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name, :scope => [:project_id] 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 + validates_format_of :effective_date, :with => /^\d{4}-\d{2}-\d{2}$/, :message => 'activerecord_error_not_a_date', :allow_nil => true def start_date effective_date |