mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Merge branch '2.3_branch'
This commit is contained in:
commit
dbd2aa71b3
1 changed files with 2 additions and 0 deletions
|
|
@ -341,6 +341,8 @@ class ProjectsController < ApplicationController
|
||||||
if default_context_name.present?
|
if default_context_name.present?
|
||||||
default_context = current_user.contexts.where(:name => default_context_name).first_or_create
|
default_context = current_user.contexts.where(:name => default_context_name).first_or_create
|
||||||
p['default_context_id'] = default_context.id
|
p['default_context_id'] = default_context.id
|
||||||
|
else
|
||||||
|
p['default_context_id'] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue