From 5e50fc0f2ff0382c217af8b3e6c94354852869ed Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Tue, 12 Aug 2014 23:53:30 +0200 Subject: [PATCH] fixes the nonfunctional order --- app/controllers/cost_types_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/cost_types_controller.rb b/app/controllers/cost_types_controller.rb index 1108983467..a37a641e9a 100644 --- a/app/controllers/cost_types_controller.rb +++ b/app/controllers/cost_types_controller.rb @@ -36,7 +36,7 @@ class CostTypesController < ApplicationController "unit_plural" => "#{CostType.table_name}.unit_plural" } sort_update sort_columns - @cost_types = CostType.find :all, :order => @sort_clause + @cost_types = CostType.find :all, :order => sort_clause unless params[:clear_filter] @fixed_date = Date.parse(params[:fixed_date]) rescue Date.today