N°2847 - Global search: Fix past queries not displaying

This commit is contained in:
Molkobain
2020-08-17 09:31:10 +02:00
parent 46909c210c
commit d011c4e8f5

View File

@@ -9,7 +9,7 @@
<span>{{ 'UI:Component:GlobalSearch:Recents:Title'|dict_s }}</span>
</div>
<div class="ibo-global-search--compartment-content" data-role="ibo-global-search--compartment-content">
{% if oUIBlock.GetLastQueries()|length > 12 %}
{% if oUIBlock.GetLastQueries()|length > 0 %}
{% for aQuery in oUIBlock.GetLastQueries() %}
<a href="#" class="ibo-global-search--compartment-element" data-role="ibo-global-search--compartment-element" data-query-raw="{{ aQuery.query }}" title="{{ aQuery.query }}">
{% if aQuery.icon_url is defined %}