override Controller#index to provide the respond_to hook that redmine_export uses for excel exporting

pull/6827/head
Tim Felgentreff 13 years ago
parent 59b8053c47
commit cbf0e73862
  1. 13
      app/controllers/cost_reports_controller.rb

@ -80,6 +80,19 @@ class CostReportsController < ApplicationController
# end
# end
##
# @Override
# Use respond_to hook, so redmine_export can hook up the excel exporting
def index
super
respond_to do |format|
format.html {
session[report_engine.name.underscore.to_sym].try(:delete, :name)
render :action => "index"
}
end unless performed?
end
def drill_down
redirect_to :action => :index
end

Loading…
Cancel
Save