did some (doc-)comments in cost_reports_controler

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1361 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 15 years ago
parent 1906f7ac09
commit 83dc3c9161
  1. 4
      app/controllers/cost_reports_controller.rb

@ -11,7 +11,7 @@ class CostReportsController < ApplicationController
##
# Determines if the request contains filters to set
def set_filter?
def set_filter? #FIXME: rename to set_query?
params[:set_filter].to_i == 1
end
@ -60,6 +60,8 @@ class CostReportsController < ApplicationController
end
end
##
# Set a default query to cut down initial load time
def default_group_parameters
{:columns => [:tweek], :rows => []}.tap do |h|
h[:rows] << :project_id unless @project

Loading…
Cancel
Save