Commit 526cbf30 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Fixed the "Nothing found for ." when no search matches found

parent 126345f2
Pipeline #2509 passed with stages
in 2 minutes and 15 seconds
......@@ -13,7 +13,7 @@
<f:if condition="{resultSet.usedSearch.numberOfResults}">
<f:else>
<div class="alert alert-danger mt-3">
<s:translate key="no_results_nothing_found" arguments="{0: resultSet.initialQueryString}">Nothing found for "%s".</s:translate>
<s:translate key="no_results_nothing_found" arguments="{0: resultSet.usedQuery.queryString}">Nothing found for "%s".</s:translate>
</div>
</f:else>
<f:then>
......@@ -27,7 +27,7 @@
<div id="tx-solr-search">
<f:if condition="{resultSet.isAutoCorrected}">
<span class="searched-for">
<s:translate key="no_results_nothing_found" arguments="{0: resultSet.initialQueryString}">Nothing found for "%s".</s:translate>
<s:translate key="no_results_nothing_found" arguments="{0: resultSet.usedQuery.queryString}">Nothing found for "%s".</s:translate>
<s:translate key="no_results_search_for_original" arguments="{0: resultSet.correctedQueryString}">Search instead for "%s".</s:translate>
</span>
</f:if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment