Przeglądaj źródła

Preload project and user.

git-svn-id: http://svn.redmine.org/redmine/trunk@15941 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 lat temu
rodzic
commit
f7782c4648
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      app/controllers/timelog_controller.rb

+ 2
- 1
app/controllers/timelog_controller.rb Wyświetl plik

@@ -45,7 +45,8 @@ class TimelogController < ApplicationController
sort_init(@query.sort_criteria.empty? ? [['spent_on', 'desc']] : @query.sort_criteria)
sort_update(@query.sortable_columns)
scope = time_entry_scope(:order => sort_clause).
preload(:issue => [:project, :tracker, :status, :assigned_to, :priority])
preload(:issue => [:project, :tracker, :status, :assigned_to, :priority]).
preload(:project, :user)

respond_to do |format|
format.html {

Ładowanie…
Anuluj
Zapisz