Fixed the error from the month chooser in the period chooser when the current period has no start as the default month.
This commit is contained in:
parent
34af52e3c3
commit
f0187434d2
@ -67,7 +67,7 @@ First written: 2023/3/4
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if report.period_chooser.has_data %}
|
{% if report.period_chooser.has_data %}
|
||||||
<div id="accounting-period-chooser-month-chooser" class="mt-3" data-start="{{ report.period_chooser.data_start }}" data-default="{{ report.period.start }}"></div>
|
<div id="accounting-period-chooser-month-chooser" class="mt-3" data-start="{{ report.period_chooser.data_start }}" data-default="{{ report.period.start|accounting_default(report.period_chooser.data_start) }}"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user