adding city id to the city search dropdown to preserve the city
authoranthony <anthony@anthony-VirtualBox.gaslightmedia.com>
Wed, 31 Jan 2018 20:45:13 +0000 (15:45 -0500)
committeranthony <anthony@anthony-VirtualBox.gaslightmedia.com>
Wed, 31 Jan 2018 20:45:13 +0000 (15:45 -0500)
preserving city search query in the dropdown

glm-member-db-events/views/front/events/searchForm.html

index a49145e..cad1b7a 100644 (file)
@@ -51,7 +51,7 @@
                             <option value="0">All Cities</option>
                             {foreach $cities as $city}
                                 {if $city.name !== '' && !empty($city.name)}
-                                    <option value="{$city.id}"{if $city.default == 1} selected{/if}>{$city.name}</option>
+                                    <option value="{$city.id}"{if $city.id == $cityId} selected{/if}>{$city.name}</option>
                                 {/if}
                             {/foreach}
                         </select>