Fixed fatal error if menu item child cannot be accessed from the menu (#3025)

This commit is contained in:
Matias Griese
2022-04-11 10:27:48 +03:00
parent 27ba2b6c7a
commit 8ff2b71125
9 changed files with 22 additions and 9 deletions

View File

@@ -125,3 +125,9 @@ msgstr "yrs"
msgid "GANTRY5_ENGINE_NICETIME_DEC_PLURAL"
msgstr "decs"
msgid "GANTRY5_ENGINE_PREV"
msgstr "Prev"
msgid "GANTRY5_ENGINE_NEXT"
msgstr "Next"

View File

@@ -144,8 +144,8 @@
{% if total > limit.total and display.pagination_buttons %}
<div class="g-content-array-pagination">
<button class="button float-left contentarray-button pagination-button pagination-button-prev" data-id="{{ id }}" data-start="{{ max(0, start - limit.total) }}"{{ start - limit.total < 0 ? ' disabled' }}>Prev</button>
<button class="button float-right contentarray-button pagination-button pagination-button-next" data-id="{{ id }}" data-start="{{ start + limit.total }}"{{ start + limit.total >= total ? ' disabled' }}>Next</button>
<button class="button float-left contentarray-button pagination-button pagination-button-prev" data-id="{{ id }}" data-start="{{ max(0, start - limit.total) }}"{{ start - limit.total < 0 ? ' disabled' }}>{{ 'GANTRY5_ENGINE_PREV'|trans }}</button>
<button class="button float-right contentarray-button pagination-button pagination-button-next" data-id="{{ id }}" data-start="{{ start + limit.total }}"{{ start + limit.total >= total ? ' disabled' }}>{{ 'GANTRY5_ENGINE_NEXT'|trans }}</button>
<div class="clearfix"></div>
</div>
{% endif %}