mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07:40:12 +01:00
parent
9089e15788
commit
1fa6a182c1
1 changed files with 2 additions and 0 deletions
|
|
@ -337,6 +337,8 @@ class ProjectsController < ApplicationController
|
|||
if default_context_name.present?
|
||||
default_context = current_user.contexts.where(:name => default_context_name).first_or_create
|
||||
p['default_context_id'] = default_context.id
|
||||
else
|
||||
p['default_context_id'] = nil
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue