diff options
Diffstat (limited to 'app/views/my/blocks/_timelog.html.erb')
-rw-r--r-- | app/views/my/blocks/_timelog.html.erb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/my/blocks/_timelog.html.erb b/app/views/my/blocks/_timelog.html.erb index a1fe39b15..0e0e6142f 100644 --- a/app/views/my/blocks/_timelog.html.erb +++ b/app/views/my/blocks/_timelog.html.erb @@ -1,9 +1,6 @@ <h3><%=l(:label_spent_time)%> (<%= l(:label_last_n_days, 7) %>)</h3> <% -entries = TimeEntry.find(:all, - :conditions => ["#{TimeEntry.table_name}.user_id = ? AND #{TimeEntry.table_name}.spent_on BETWEEN ? AND ?", @user.id, Date.today - 6, Date.today], - :include => [:activity, :project, {:issue => [:tracker, :status]}], - :order => "#{TimeEntry.table_name}.spent_on DESC, #{Project.table_name}.name ASC, #{Tracker.table_name}.position ASC, #{Issue.table_name}.id ASC") +entries = timelog_items entries_by_day = entries.group_by(&:spent_on) %> |