adding search fields check to the birth year range, previously added to the death...
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 1 May 2017 17:08:33 +0000 (13:08 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 1 May 2017 17:08:33 +0000 (13:08 -0400)
also adding search fields index check for birth year in the admin list view search fields. this
is during the foreach loop that populates the birth year range dropdown

views/admin/obits/list.html

index eb5df74..0d644c2 100644 (file)
@@ -53,7 +53,7 @@
                     <select class="obit-search-select" id="b_yr_range" data-id="b_yr_range" name="b_yr_range">
                     <option value="">Select a date range</option>
                     {foreach from=$birthDeathRange.birth item=r}
-                        <option value="{$r.start}" {if $search_fields.b_range == {$r.start}} selected="selected"{/if}>
+                        <option value="{$r.start}" {if 'b_range'|array_key_exists:$search_fields }{if $search_fields.b_range == {$r.start}} selected="selected"{/if}{/if}>
                             {$r.start} - {$r.end}
                         </option>
                     {/foreach}