summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-30 13:18:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-30 13:18:22 +0000
commit47e9796473af6f4340cea28ef14f3e5d841ff56b (patch)
treeb8d80a7049bdfb649a30599c4d03c9b6ed57baba /lib
parent54920625578879bf0e48bbb5fe008ac104bc781e (diff)
downloadredmine-47e9796473af6f4340cea28ef14f3e5d841ff56b.tar.gz
redmine-47e9796473af6f4340cea28ef14f3e5d841ff56b.zip
Makes object argument optional and typo.
git-svn-id: http://svn.redmine.org/redmine/trunk@13672 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/helpers/gantt.rb4
1 files changed, 2 insertions, 2 deletions
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