[XFA] Set default max value in occur tag to -1 (bug 1998843)

This commit is contained in:
Calixte Denizet 2025-11-21 17:53:38 +01:00
parent 8f0c62990e
commit 516aea5562
3 changed files with 12 additions and 1 deletions

View File

@ -3899,7 +3899,7 @@ class Occur extends XFAObject {
attributes.max !== "" attributes.max !== ""
? getInteger({ ? getInteger({
data: attributes.max, data: attributes.max,
defaultValue: 1, defaultValue: -1,
validate: x => true, validate: x => true,
}) })
: ""; : "";

View File

@ -0,0 +1 @@
https://bugzilla.mozilla.org/attachment.cgi?id=9525217

View File

@ -13067,5 +13067,15 @@
"type": "extract", "type": "extract",
"includePages": [0], "includePages": [0],
"pageMapping": { "1": 1 } "pageMapping": { "1": 1 }
},
{
"id": "xfa_bug1998843",
"file": "pdfs/xfa_bug1998843.pdf",
"md5": "b7b25e5b05b2b903d0a6727c9f962a91",
"link": true,
"rounds": 1,
"enableXfa": true,
"lastPage": 1,
"type": "eq"
} }
] ]