mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-05 12:30:15 +01:00
Fixed #484. There was a bug preventing validation errors from appearing when editing todos. In addition, todos now have their state updated before loading the tickler page.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@536 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
ff28a733bd
commit
274cdba18c
2 changed files with 2 additions and 1 deletions
|
|
@ -255,6 +255,7 @@ class TodosController < ApplicationController
|
||||||
def list_deferred
|
def list_deferred
|
||||||
@source_view = 'deferred'
|
@source_view = 'deferred'
|
||||||
@page_title = "TRACKS::Tickler"
|
@page_title = "TRACKS::Tickler"
|
||||||
|
@user.deferred_todos.find_and_activate_ready
|
||||||
@tickles = @user.deferred_todos
|
@tickles = @user.deferred_todos
|
||||||
@count = @tickles.size
|
@count = @tickles.size
|
||||||
@default_project_context_name_map = build_default_project_context_name_map(@projects).to_json
|
@default_project_context_name_map = build_default_project_context_name_map(@projects).to_json
|
||||||
|
|
|
||||||
|
|
@ -69,5 +69,5 @@ if @saved
|
||||||
|
|
||||||
else
|
else
|
||||||
page.show 'error_status'
|
page.show 'error_status'
|
||||||
page.replace_html 'error_status', "#{error_messages_for('item')}"
|
page.replace_html 'error_status', "#{error_messages_for('todo')}"
|
||||||
end
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue