summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-06-04 17:17:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-06-04 17:17:48 +0000
commit46085644ed7c44ba8d2d8a88823a4bca1aa063b6 (patch)
tree1d187d1aa28183db5057e58b98f87a1379ef9253 /app
parent01411ab567887eb329d33a68f7635d3297649b5f (diff)
downloadredmine-46085644ed7c44ba8d2d8a88823a4bca1aa063b6.tar.gz
redmine-46085644ed7c44ba8d2d8a88823a4bca1aa063b6.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/models/issue.rb3
1 files changed, 2 insertions, 1 deletions
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