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
This commit is contained in:
Jean-Philippe Lang
2013-06-04 17:17:48 +00:00
parent 01411ab567
commit 46085644ed
49 changed files with 50 additions and 1 deletions
+2 -1
View File
@@ -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