Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
Description
buildFormTree changes the DOM while parsing the radio button sections, mutating the name field of each element. Since the DOM model is that there can only be at most one selected element for each distinct name, the last radio button selected for each base name will be the only one selected.
The fix is not to mutate the DOM while building the JSON form data.
Attachments
Issue Links
- relates to
-
JENKINS-38928 Apply button behaviour broken
-
- Resolved
-
Code changed in jenkins
User: Stephen Connolly
Path:
war/src/main/webapp/scripts/hudson-behavior.js
http://jenkins-ci.org/commit/jenkins/88d84f6e9b2f05366bc8e6f4bc62ac61e7211926
Log:
[FIXED JENKINS-22570] On a configure screen that has multiple groups of radio buttons, clicking the apply button clears all but the last radio group selection
could be seen... though a careful attention to the page submit can identify the change... and the page is now
left as before clicking f:apply instead of mutated.