Release 2.0.18 (#4003)
* prevent too long values for user preferences * add chart value 0 to y-axis if last value > 0, to always display the zero line (project details) * add user-preferences to invoice hydrator * DateTime vs DateTimeInterface * simplify permission config * fix query for teamleads limiting to only selected teams not possible
This commit is contained in:
@@ -77,6 +77,14 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% set last = chartData|last %}
|
||||
{% if last is not empty and last.value > 0 %}
|
||||
{% set chartValueZero = {
|
||||
'label': (showMoneyBudget ? 0|money(currency) : 0|duration),
|
||||
'value': (showMoneyBudget ? 0|chart_money : 0|chart_duration),
|
||||
} %}
|
||||
{% set chartData = chartData|merge([chartValueZero]) %}
|
||||
{% endif %}
|
||||
{{ bar_chart(chartPrefix, chartLabels, [chartData], {'height': '300px', 'renderEvent': 'render.' ~ chartPrefix, 'type': 'line'}) }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user