mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
Need to save todo after updating state from project. Fixes #834.
This commit is contained in:
parent
2ee84b8162
commit
e40b8ecbcf
2 changed files with 2 additions and 1 deletions
|
|
@ -260,6 +260,7 @@ class TodosController < ApplicationController
|
|||
@project_changed = @original_item_project_id != @todo.project_id
|
||||
if (@project_changed && !@original_item_project_id.nil?) then
|
||||
@todo.update_state_from_project
|
||||
@todo.save!
|
||||
@remaining_undone_in_project = current_user.projects.find(@original_item_project_id).not_done_todo_count
|
||||
end
|
||||
determine_down_count
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue