mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-31 06:18:49 +01:00
fix #1268. The default context in the new todo form on the home page is now the first active context
Instead of the first context that could be hidden and thus appear random. Also fix setting the default context based on the project you select.
This commit is contained in:
parent
90c80c4330
commit
c7637053e1
3 changed files with 7 additions and 5 deletions
|
|
@ -18,8 +18,8 @@ class TodosController < ApplicationController
|
|||
extend ActionView::Helpers::SanitizeHelper::ClassMethods
|
||||
|
||||
def index
|
||||
@projects = current_user.projects.find(:all, :include => [:default_context])
|
||||
@contexts = current_user.contexts.find(:all)
|
||||
@projects = current_user.projects.all(:include => [:default_context])
|
||||
@contexts = current_user.contexts
|
||||
|
||||
@contexts_to_show = current_user.contexts.active
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue