diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 11:43:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-07-25 11:43:19 +0000 |
commit | 701d2eaeacdfc18ede147702522f4325528b37bb (patch) | |
tree | e39e9e2cda7a6ea831ef3857f5856892582069a9 /app | |
parent | bdad35a736141a92b4b2106f845d63a7fe67d640 (diff) | |
download | redmine-701d2eaeacdfc18ede147702522f4325528b37bb.tar.gz redmine-701d2eaeacdfc18ede147702522f4325528b37bb.zip |
Display project names in cross-project gantt PNG (#5904).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3885 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/gantts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/gantts_controller.rb b/app/controllers/gantts_controller.rb index bc2d6350c..e762c19c8 100644 --- a/app/controllers/gantts_controller.rb +++ b/app/controllers/gantts_controller.rb @@ -37,7 +37,7 @@ class GanttsController < ApplicationController respond_to do |format| format.html { render :action => "show", :layout => !request.xhr? } - format.png { send_data(@gantt.to_image, :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') + format.png { send_data(@gantt.to_image(@project), :disposition => 'inline', :type => 'image/png', :filename => "#{basename}.png") } if @gantt.respond_to?('to_image') format.pdf { send_data(gantt_to_pdf(@gantt, @project), :type => 'application/pdf', :filename => "#{basename}.pdf") } end end |