Skip to content

Commit ec71e4e

Browse files
authored
Merge pull request #20455 from calixteman/bug1998843
[XFA] Set default max value in occur tag to -1 (bug 1998843)
2 parents d4b6464 + 516aea5 commit ec71e4e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

src/core/xfa/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3899,7 +3899,7 @@ class Occur extends XFAObject {
38993899
attributes.max !== ""
39003900
? getInteger({
39013901
data: attributes.max,
3902-
defaultValue: 1,
3902+
defaultValue: -1,
39033903
validate: x => true,
39043904
})
39053905
: "";

test/pdfs/xfa_bug1998843.pdf.link

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://bugzilla.mozilla.org/attachment.cgi?id=9525217

test/test_manifest.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13075,5 +13075,15 @@
1307513075
"type": "extract",
1307613076
"includePages": [0],
1307713077
"pageMapping": { "1": 1 }
13078+
},
13079+
{
13080+
"id": "xfa_bug1998843",
13081+
"file": "pdfs/xfa_bug1998843.pdf",
13082+
"md5": "b7b25e5b05b2b903d0a6727c9f962a91",
13083+
"link": true,
13084+
"rounds": 1,
13085+
"enableXfa": true,
13086+
"lastPage": 1,
13087+
"type": "eq"
1307813088
}
1307913089
]

0 commit comments

Comments
 (0)