Merge pull request #898 from okriuchykhin/ok_SCI_1838

Fix assignment of users to projects [SCI-1838]
This commit is contained in:
okriuchykhin 2017-11-30 11:16:07 +01:00 committed by GitHub
commit 16729ccd7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,9 +66,9 @@ class UserProjectsController < ApplicationController
) )
respond_to do |format| respond_to do |format|
format.json { format.json do
redirect_to :action => :index_edit, :format => :json redirect_to project_users_edit_path(format: :json), turbolinks: false
} end
end end
else else
error = t('user_projects.create.can_add_user_to_project') error = t('user_projects.create.can_add_user_to_project')
@ -110,9 +110,9 @@ class UserProjectsController < ApplicationController
) )
respond_to do |format| respond_to do |format|
format.json { format.json do
redirect_to :action => :index_edit, :format => :json redirect_to project_users_edit_path(format: :json), turbolinks: false
} end
end end
else else
respond_to do |format| respond_to do |format|