|
|
@ -49,23 +49,23 @@ class CostReportsController < ApplicationController |
|
|
|
else |
|
|
|
else |
|
|
|
render :layout => !request.xhr? |
|
|
|
render :layout => !request.xhr? |
|
|
|
end |
|
|
|
end |
|
|
|
# rescue Exception => e |
|
|
|
rescue Exception => e |
|
|
|
# logger.error "#{e.class.name}: #{e.message}" if logger |
|
|
|
logger.error "#{e.class.name}: #{e.message}" if logger |
|
|
|
# session.delete :cost_query |
|
|
|
session.delete :cost_query |
|
|
|
# |
|
|
|
|
|
|
|
# # Give it a name, required to be valid |
|
|
|
# Give it a name, required to be valid |
|
|
|
# @query = CostQuery.new(:name => "_") |
|
|
|
@query = CostQuery.new(:name => "_") |
|
|
|
# @query.project = @project |
|
|
|
@query.project = @project |
|
|
|
# |
|
|
|
|
|
|
|
# get_entries(limit) |
|
|
|
get_entries(limit) |
|
|
|
# respond_to do |format| |
|
|
|
respond_to do |format| |
|
|
|
# format.html do |
|
|
|
format.html do |
|
|
|
# @custom_error = l(:error_generic) |
|
|
|
@custom_error = l(:error_generic) |
|
|
|
# render :layout => !request.xhr? |
|
|
|
render :layout => !request.xhr? |
|
|
|
# end |
|
|
|
end |
|
|
|
# format.atom {render_500(l(:error_generic))} |
|
|
|
format.atom {render_500(l(:error_generic))} |
|
|
|
# format.csv {render_500(l(:error_generic))} |
|
|
|
format.csv {render_500(l(:error_generic))} |
|
|
|
# end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def new |
|
|
|
def new |
|
|
|