From: Anthony Talarico Date: Fri, 2 Jun 2017 19:00:13 +0000 (-0400) Subject: adding conditionals to restrict the smarty post array to not include certain values X-Git-Tag: v1.0.0^2~46 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3bec6fcab795e0a82c1d4c1772569fd31fe3197c;p=WP-Themes%2Fmichigantrailmaps.git adding conditionals to restrict the smarty post array to not include certain values needed to check to make sure that values were empty in the members list page search results before filtering them out of the results --- diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index 57a5219..a77a824 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -3,13 +3,14 @@
Search Terms: {foreach $smarty.request as $key=>$value} - {if $value[0]} - {if $key !== 'action' && $key !== 'submit' && $key !== 'categories'} + {if $key !== 'action' && $key !== 'submit' && $key !== 'categories' } {if $key !== 'textSearch'} + {if $value[0]} {if $key === 'regionUserSearch'} {$key = 'regions'} - {/if} + {/if} [{$searchParams->$key->$value[0]->name}] + {/if} {else} [{$value}] {/if} @@ -24,7 +25,6 @@ Search Terms: {/if} {/foreach} {/if} - {/if} {/foreach}