open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
37 stars 26 forks source link

int as value of select component issue #4772

Closed LaurensBurger closed 1 week ago

LaurensBurger commented 1 month ago

Product versie / Product version

2.8.0

Customer reference

DH 707

Omschrijf het probleem / Describe the bug

Having an int as a value in a "select" component

image

will trigger "AssertionError openforms.submissions.tasks.pdf.generate_submission_report" and fail to register the submission with (Inzending 4118): PDF generatietaak mislukt

sentry 375771

Stappen om te reproduceren / Steps to reproduce

No response

Verwacht gedrag / Expected behavior

No response

Screen resolution

None

Device

None

OS

None

Browser

No response

joeribekker commented 1 month ago

@LaurensBurger the JSON doesn't seem to contain an int? Do you also know how the int is set there? Service fetch, manual JSON or just because theres a number given as select option???

LaurensBurger commented 1 month ago

just because theres a number given as select option: image

LaurensBurger commented 4 weeks ago

Addionally, i believe related: when a int is used as a value - this int will be shown in the overview step, instead of the label: image image

vjawala commented 2 weeks ago

Also related. With this, when submitting the form the PDF generate task fails

Screenshot 2024-11-07 at 17 59 48 Screenshot 2024-11-07 at 18 00 03