mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-28 12:58:48 +01:00
fix #866 where some variables were not set in defer
This commit is contained in:
parent
8b3576f5a0
commit
aeb9a1fda6
1 changed files with 5 additions and 0 deletions
|
|
@ -441,6 +441,11 @@ class TodosController < ApplicationController
|
|||
|
||||
determine_down_count
|
||||
determine_remaining_in_context_count(@todo.context_id)
|
||||
if @source_view == 'project'
|
||||
@remaining_undone_in_project = current_user.projects.find(@todo.project_id).not_done_todo_count
|
||||
@original_item_project_id = @todo.project_id
|
||||
end
|
||||
|
||||
respond_to do |format|
|
||||
format.html { redirect_to :back }
|
||||
format.js {render :action => 'update'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue