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

Get rid of all the role related logic in Spree::Admin::UsersController #7004

Merged
merged 1 commit into from
Feb 10, 2016

Conversation

Bharat311
Copy link
Contributor

In this PR - Spree::Admin::UsersController has been cleaned up.
All the roles related extra code has been removed by making use of collection_check_boxes helper.

Following 2 bugs have been fixed:

  • If a role is checked and form submitted but invalid - role becomes unchecked.
  • If there is password_confirmation doesn't match password field - it displays error message but w/o any highlight.

* Fix Bug - Upon unsuccessful form submission - the state of roles reverts
* Fix Bug - Upon unsuccessful form submission - password confirmation shows error but does not highlight in red
@priyank-gupta
Copy link
Contributor

👍

Mafi88 added a commit that referenced this pull request Feb 10, 2016
Get rid of all the role related logic in Spree::Admin::UsersController
@Mafi88 Mafi88 merged commit 80efa60 into spree:master Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants