-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
[JENKINS-72505] f:validateButton finds selected radio button #8832
Conversation
69785b4
to
2d9a276
Compare
2d9a276
to
e9b7c0b
Compare
@jenkinsci/core-pr-reviewers possible to get a review for this simple bug please? |
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.
LGTM, thanks a lot for the fix!
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.
This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback.
/label ready-for-merge
…ci#8832) JENKINS-72505 f:validateButton finds selected radio button Co-authored-by: Mark Waite <[email protected]> Co-authored-by: Alexander Brandes <[email protected]> (cherry picked from commit d2a9fd2)
See JENKINS-72505.
Previously it just found the last button when doing validation that involved a radio button, it should try and find a selected one instead...
Noticed in jenkinsci/azure-vm-agents-plugin#493
Testing done
Unit test, if you run it on master you get:
Manually:
Tested with a validateButton when editing a template in an azure cloud jenkinsci/azure-vm-agents-plugin#493.
Previously the last radio button was being sent to the method handling the validate button, now it's the selected radio.
I also added an extra radio button locally to make sure it wasn't just taking the first one in the dom by continuing all the way.
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Desired reviewers
@mention
Before the changes are marked as
ready-for-merge
:Maintainer checklist