From 0cce9ef09d2d4012e580d507e6b363bc2ec044ea Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:38:07 +0100 Subject: [PATCH] fixes #2309 stop ratings redisplaying change condition for show_filter_ratings --- themes/default/template/include/search_filters.inc.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/themes/default/template/include/search_filters.inc.tpl b/themes/default/template/include/search_filters.inc.tpl index d95dc987a..c1a5ff012 100644 --- a/themes/default/template/include/search_filters.inc.tpl +++ b/themes/default/template/include/search_filters.inc.tpl @@ -86,10 +86,8 @@ const prefix_icon = 'gallery-icon-'; {/if} }; - {if $SHOW_FILTER_RATINGS and isset($RATING)} - var show_filter_ratings = true; - {else} - var show_filter_ratings = false; + {if isset($SHOW_FILTER_RATINGS)} + var show_filter_ratings = {if $SHOW_FILTER_RATINGS}{$SHOW_FILTER_RATINGS}{else}false{/if}; {/if} {/footer_script}