Fixing commas in top-search results term list
authorLaury GvR <laury@gaslightmedia.com>
Tue, 22 Aug 2017 18:10:25 +0000 (14:10 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 22 Aug 2017 18:10:25 +0000 (14:10 -0400)
The list of search terms after performing a search in the top-search
was getting commas in the wrong places.

glm-member-db/views/front/members/list.html

index 812d3ea..a552731 100644 (file)
@@ -12,8 +12,8 @@ Search Terms:
               {$key = 'regions'}
          {/if}
          <span class="trail-search-term">{if $termCounter > 0}, {/if}{$searchParams->$key->$value[0]->name}</span>
-        {/if}
         {$termCounter = $termCounter + 1}
+        {/if}
      {else}
         <span class="trail-search-term">{if $termCounter > 0}, {/if}{$value}</span>
         {$termCounter = $termCounter + 1}