Pass user prefs to timelogs view

pull/1610/head
Hagen Schink 10 years ago
parent 8cdcaf6dc9
commit bf1de6a3e6
  1. 2
      app/controllers/timelog_controller.rb

@ -42,6 +42,7 @@ class TimelogController < ApplicationController
include TimelogHelper
include CustomFieldsHelper
include PaginationHelper
include OpenProject::ClientPreferenceExtractor
def index
sort_init 'spent_on', 'desc'
@ -76,6 +77,7 @@ class TimelogController < ApplicationController
gon.sort_column = 'spent_on'
gon.sort_direction = 'desc'
gon.total_count = total_entry_count(cond)
gon.settings = client_preferences
render :layout => !request.xhr?
}

Loading…
Cancel
Save