Skip to content

Commit

Permalink
Fixed scheduling of next task on a weekend if this is not enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
kulesa committed Jan 18, 2012
1 parent f0f9f72 commit 489ec2c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/redmine_better_gantt_chart/issue_dependency_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def process_following_issues(issue)
issue.relations_from.each do |relation|
if is_a_link_with_following_issue?(relation) && due_date = cached_value(issue, :due_date)
new_start_date = RedmineBetterGanttChart::Calendar.workdays_from_date(due_date, relation.delay) + 1.day
new_start_date = RedmineBetterGanttChart::Calendar.next_working_day(new_start_date)
reschedule_dependent_issue(relation.issue_to, :start_date => new_start_date)
end
end
Expand Down

0 comments on commit 489ec2c

Please sign in to comment.