Skip to content

Commit

Permalink
Merge pull request #17159 from calixteman/bug1860602
Browse files Browse the repository at this point in the history
[Annotation] Use the field V entry when there is no Parent one for a radio button (bug 1860602)
  • Loading branch information
calixteman authored Oct 24, 2023
2 parents 377af68 + 2f3797d commit 3f2072e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,7 @@ class ButtonWidgetAnnotation extends WidgetAnnotation {
}

_processRadioButton(params) {
this.data.fieldValue = this.data.buttonValue = null;
this.data.buttonValue = null;

// The parent field's `V` entry holds a `Name` object with the appearance
// state of whichever child field is currently in the "on" state.
Expand Down
2 changes: 2 additions & 0 deletions test/pdfs/bug1860602.pdf.link
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9359849

11 changes: 11 additions & 0 deletions test/test_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8170,5 +8170,16 @@
"rounds": 1,
"type": "eq",
"annotations": true
},
{
"id": "bug1860602",
"file": "pdfs/bug1860602.pdf",
"md5": "37de2fbd0a02c5a3ca27c6e75fea8932",
"rounds": 1,
"link": true,
"firstPage": 2,
"lastPage": 2,
"type": "eq",
"forms": true
}
]

0 comments on commit 3f2072e

Please sign in to comment.