From: Jean-Philippe Lang Date: Sun, 30 Nov 2014 13:18:22 +0000 (+0000) Subject: Makes object argument optional and typo. X-Git-Tag: 3.0.0~315 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47e9796473af6f4340cea28ef14f3e5d841ff56b;p=redmine.git Makes object argument optional and typo. git-svn-id: http://svn.redmine.org/redmine/trunk@13672 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 14df7a0ad..75b57271c 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -287,7 +287,7 @@ module Redmine end def line_for_project(project, options) - # Skip versions that don't have a start_date or due date + # Skip projects that don't have a start_date or due date if project.is_a?(Project) && project.start_date && project.due_date label = project.name line(project.start_date, project.due_date, nil, true, label, options, project) @@ -320,7 +320,7 @@ module Redmine end end - def subject(label, options, object) + def subject(label, options, object=nil) send "#{options[:format]}_subject", options, label, object end