Incorrect parsing of 0 values in PDF templates #9809
Labels
Area: PDFs
Issues & PRs related to all things regarding PDFs
Priority:Important
Issues & PRs that are important; broken functions, errors - there are workarounds
Status:Fix Proposed
A issue that has a PR related to it that provides a possible resolution
Type: Bug
Bugs within the core SuiteCRM codebase
Issue
PDF templates do not correctly parse 0 values, because they are interpreted as "empty" or false, and do not show any value in the generated PDF document.
If a dropdown list uses 0 as an internal value, the corresponding label will not be displayed for the same reason.
Expected Behavior
If a value is set to 0 it should display as 0 in the PDF template.
Steps to Reproduce
Context
In some cases it is necessary to show in the PDF templates the explicit value 0
Your Environment
The text was updated successfully, but these errors were encountered: