Fixes #21518: Ensure proper display of decimal custom fields with a zero value (#21523)

This commit is contained in:
Jeremy Stretch 2026-02-27 12:13:53 -05:00 committed by GitHub
parent 7db2739465
commit 071d4a63aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,8 @@
{% load i18n %}
{% if customfield.type == 'integer' and value is not None %}
{{ value }}
{% elif customfield.type == 'decimal' and value is not None %}
{{ value }}
{% elif customfield.type == 'longtext' and value %}
{{ value|markdown }}
{% elif customfield.type == 'boolean' and value == True %}