Fix #1500 (Custom ratings of increment 0.5 are allowed)

This commit is contained in:
Ozzieisaacs
2020-07-05 14:35:57 +02:00
parent d1889a5e06
commit f80c67828b
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
{{ c.name }}:
{% for column in entry['custom_column_' ~ c.id] %}
{% if c.datatype == 'rating' %}
{{ '%d' % (column.value / 2) }}
{{ '%d' % (column.value / 2) }}{% if ((column.value /2) % 1) != 0 %}{{ '.%d' % (((column.value /2) % 1)*10) }} {% endif %}
{% else %}
{% if c.datatype == 'bool' %}
{% if column.value == true %}