Merge branch 'QA_5_2'

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2024-06-06 11:25:01 -03:00
commit b4cbb4f4a4
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

View File

@ -120,10 +120,13 @@
<label for="sessionMaxRowsSelect">{{ t('Number of rows:') }}</label>
<select class="autosubmit" name="session_max_rows" id="sessionMaxRowsSelect">
{% set rows_options = [25, 50, 100, 250, 500] %}
{% if navigation.is_showing_all %}
<option value="" disabled selected>{{ t('All') }}</option>
{% elseif navigation.max_rows not in rows_options %}
{% set rows_options = rows_options|merge([navigation.max_rows])|sort((a, b) => a <=> b) %}
{% endif %}
{% for option in ['25', '50', '100', '250', '500'] %}
{% for option in rows_options %}
<option value="{{ option }}"{{ navigation.max_rows == option ? ' selected' }}>{{ option }}</option>
{% endfor %}
</select>