remove context if name is not set in update form

fixes #1839
This commit is contained in:
Carsten Otto 2015-08-09 13:41:29 +02:00
parent 9089e15788
commit 1fa6a182c1

View file

@ -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