mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 23:15:34 +08:00
Merge pull request #898 from okriuchykhin/ok_SCI_1838
Fix assignment of users to projects [SCI-1838]
This commit is contained in:
commit
16729ccd7d
1 changed files with 6 additions and 6 deletions
|
@ -66,9 +66,9 @@ class UserProjectsController < ApplicationController
|
|||
)
|
||||
|
||||
respond_to do |format|
|
||||
format.json {
|
||||
redirect_to :action => :index_edit, :format => :json
|
||||
}
|
||||
format.json do
|
||||
redirect_to project_users_edit_path(format: :json), turbolinks: false
|
||||
end
|
||||
end
|
||||
else
|
||||
error = t('user_projects.create.can_add_user_to_project')
|
||||
|
@ -110,9 +110,9 @@ class UserProjectsController < ApplicationController
|
|||
)
|
||||
|
||||
respond_to do |format|
|
||||
format.json {
|
||||
redirect_to :action => :index_edit, :format => :json
|
||||
}
|
||||
format.json do
|
||||
redirect_to project_users_edit_path(format: :json), turbolinks: false
|
||||
end
|
||||
end
|
||||
else
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Reference in a new issue