From 46085644ed7c44ba8d2d8a88823a4bca1aa063b6 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 4 Jun 2013 17:17:48 +0000 Subject: Adds a specific error message for when the start date is too earlier than the minimum start date (#14086). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11926 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/issue.rb b/app/models/issue.rb index 1963c0293..c4183b016 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -18,6 +18,7 @@ class Issue < ActiveRecord::Base include Redmine::SafeAttributes include Redmine::Utils::DateCalculation + include Redmine::I18n belongs_to :project belongs_to :tracker @@ -552,7 +553,7 @@ class Issue < ActiveRecord::Base end if start_date && soonest_start && start_date < soonest_start - errors.add :start_date, :invalid + errors.add :start_date, :earlier_than_minimum_start_date, :date => format_date(soonest_start) end if fixed_version -- cgit v1.2.3