Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registrar: undefined method `back_url' on switching registrars #1535

Closed
vohmar opened this issue Feb 19, 2020 · 0 comments · Fixed by #1549
Closed

Registrar: undefined method `back_url' on switching registrars #1535

vohmar opened this issue Feb 19, 2020 · 0 comments · Fixed by #1549
Assignees
Labels

Comments

@vohmar
Copy link
Contributor

vohmar commented Feb 19, 2020

Trying to switch registrars in case users personal id code is associated with multiple registrars in parallel results in NoMethodError

NoMethodError in Registrar::CurrentUserController#switch
undefined method `back_url' for #Registrar::CurrentUserController:0x000056120263a4b0

  sign_in(:registrar_user, new_user)
  redirect_to :back, notice: t('.switched', new_user: new_user)
end

private

image

to replicate

  • login to registrar portal with api user that has personal id code defined and that is shared with a users / users with associations to other registrars.
  • once logged in click on user/registrar name in top right corner to open profile view with
  • in linked users section click on another registrar to switch to that user
  • error is returned (tested on staging and test using master branch)
@vohmar vohmar added the bug label Feb 19, 2020
@yulgolem yulgolem self-assigned this Feb 28, 2020
yulgolem added a commit that referenced this issue Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants