-
Notifications
You must be signed in to change notification settings - Fork 365
Fix button form save button validation #9501
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
base: master
Are you sure you want to change the base?
Fix button form save button validation #9501
Conversation
@GilbertCherrie I manually tested against #9470 and both issues are resolved. Now to review the code. |
end | ||
else # if new value and current value are not equal | ||
@changed = session[:changed] = true | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might want to extract methods out of these conditional where you can give a decent name to the logic... it's going to be hard to test this in a unit test without smaller methods.
The behavior changes look good but I think we need some unit tests for some of the complex logic you managed to figure out. |
45630b9
to
c441f4f
Compare
Checked commits GilbertCherrie/manageiq-ui-classic@c441f4f~...e506a50 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.62.0, and yamllint app/controllers/application_controller/buttons.rb
|
d1470ab
to
7d36eeb
Compare
7d36eeb
to
d0ce60d
Compare
Fixes: #9470
This pr fixes an issue where changing the attributes or roles doesn't properly enable/disable the save button on the button form