mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-16 20:28:09 +01:00
add tests
This commit is contained in:
parent
61624ed455
commit
80d8d2b67a
2 changed files with 57 additions and 8 deletions
|
|
@ -420,9 +420,7 @@ class StatsController < ApplicationController
|
|||
@actions_running_time = current_user.todos.not_completed.find(:all, { :select => "id, created_at" })
|
||||
|
||||
@selected_todo_ids, @count = get_ids_from(@actions_running_time, week_from, week_to, params['id']=='art_end')
|
||||
@selected_actions = @actions.find(:all, {
|
||||
:conditions => "id in (" + @selected_todo_ids + ")"
|
||||
})
|
||||
@selected_actions = current_user.todos.find(:all, { :conditions => "id in (" + @selected_todo_ids + ")" })
|
||||
|
||||
render :action => "show_selection_from_chart"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue