diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 27faf0a96..ebc9610f0 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -457,7 +457,7 @@ module Redmine wday = @date_from.cwday (date_to - @date_from + 1).to_i.times do width = zoom - gc.fill(wday == 6 || wday == 7 ? '#eee' : 'white') + gc.fill(non_working_week_days.include?(wday) ? '#eee' : 'white') gc.stroke('#ddd') gc.stroke_width(1) gc.rectangle(left, 2 * header_height, left + width, 2 * header_height + g_height - 1)