mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 01:36:10 +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
|
|
@ -1,6 +1,7 @@
|
|||
<%
|
||||
@initial_context_name = @context.name unless @context.nil?
|
||||
@initial_context_name ||= @project.default_context.name unless @project.nil? || @project.default_context.nil?
|
||||
@initial_context_name = @context.name if @context
|
||||
@initial_context_name ||= @project.default_context.name unless @project.nil? || @project.default_context.nil?
|
||||
@initial_context_name ||= @contexts.active.first.name unless @contexts.active.first.nil?
|
||||
@initial_context_name ||= @contexts.first.name unless @contexts.first.nil?
|
||||
@initial_project_name = @project.name unless @project.nil?
|
||||
@initial_tags ||= @default_tags
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue