mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-15 17:44:46 +08:00
Fix assignment of users to projects [SCI-1838]
This commit is contained in:
parent
e740e586e8
commit
194054d973
1 changed files with 11 additions and 9 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|
|
||||
|
@ -145,9 +145,11 @@ class UserProjectsController < ApplicationController
|
|||
generate_notification(current_user, @up.user, false, false, @project)
|
||||
|
||||
respond_to do |format|
|
||||
format.json {
|
||||
redirect_to project_users_edit_path(format: :json), :status => 303
|
||||
}
|
||||
format.json do
|
||||
redirect_to project_users_edit_path(format: :json),
|
||||
turbolinks: false,
|
||||
status: 303
|
||||
end
|
||||
end
|
||||
else
|
||||
respond_to do |format|
|
||||
|
|
Loading…
Add table
Reference in a new issue