From fe1ccbf2760060928bb62ea82b6067922aa4129b Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Mon, 23 Sep 2019 11:43:34 -0400 Subject: [PATCH] Reset filters button should work for advanced searches too. (#1435) --- themes/bootstrap3/templates/search/filters.phtml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/themes/bootstrap3/templates/search/filters.phtml b/themes/bootstrap3/templates/search/filters.phtml index 24300bdbbab..ef4e5274109 100644 --- a/themes/bootstrap3/templates/search/filters.phtml +++ b/themes/bootstrap3/templates/search/filters.phtml @@ -113,12 +113,10 @@ ?> <?php // Normal view ?> <div class="active-filters hidden-xs"> - <?php if ($advancedSearch): ?> + <?php if ($resetLink && $options->getRetainFilterSetting()): ?> + <a class="reset-filters-btn" href="<?=$resetLink?>"><?=$this->transEsc('reset_filters_button')?></a> + <?php elseif ($advancedSearch): ?> <p class="adv_search_filters"><?=$this->transEsc('adv_search_filters')?>:</p> - <?php else: ?> - <?php if ($resetLink && $options->getRetainFilterSetting()): ?> - <a class="reset-filters-btn" href="<?=$resetLink?>"><?=$this->transEsc('reset_filters_button')?></a> - <?php endif; ?> <?php endif; ?> <div class="filters"> <?=$filters ?> -- GitLab