Ignore non-working days when rescheduling an issue (#2161).

Weekly non-working days can be configured in application settings (set to saturday and sunday by default).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10747 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-10-29 10:06:30 +00:00
1 parent 48d83884c3
commit b71355f10b
12 files changed
+244 -19

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ class IssueRelation < ActiveRecord::Base
def set_issue_to_dates
soonest_start = self.successor_soonest_start
if soonest_start && issue_to
issue_to.reschedule_after(soonest_start)
issue_to.reschedule_on!(soonest_start)
end
end