diff --git a/app/controllers/cms/dashboard_controller.rb b/app/controllers/cms/dashboard_controller.rb index e58912840..2e62096b8 100644 --- a/app/controllers/cms/dashboard_controller.rb +++ b/app/controllers/cms/dashboard_controller.rb @@ -6,6 +6,7 @@ def index @unpublished_pages = @unpublished_pages.select { |page| current_user.able_to_publish?(page) } @incomplete_tasks = current_user.tasks.incomplete. includes(:page). + where(Page.table_name => {:deleted => false}). order("#{Task.table_name}.due_date desc, #{Page.table_name}.name"). references(:page) end