]> source.dussan.org Git - redmine.git/commitdiff
Makes object argument optional and typo.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2014 13:18:22 +0000 (13:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Nov 2014 13:18:22 +0000 (13:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13672 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/helpers/gantt.rb

index 14df7a0ad1970b04792f074e4ea216189dd50ad4..75b57271ca50f1d9a6e0f7d31cae7af048fdd50f 100644 (file)
@@ -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