summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/en/default/search/search-instant.html.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/en/default/search/search-instant.html.tmpl b/template/en/default/search/search-instant.html.tmpl
index 59cd8c551..c14b681b1 100644
--- a/template/en/default/search/search-instant.html.tmpl
+++ b/template/en/default/search/search-instant.html.tmpl
@@ -46,7 +46,7 @@ YAHOO.bugzilla.instantSearch.setLabels( {
[% FOREACH p = user.get_selectable_products(c.id) %]
[% IF p.components.size %]
<option value="[% p.name FILTER html %]"
- [% " selected" IF lsearch(default.product, p.name) != -1 %]>
+ [% " selected" IF default.product && lsearch(default.product, p.name) != -1 %]>
[% p.name FILTER html %]
</option>
[% END %]
@@ -56,7 +56,7 @@ YAHOO.bugzilla.instantSearch.setLabels( {
[% ELSE %]
[% FOREACH p = product %]
<option value="[% p.name FILTER html %]"
- [% " selected" IF lsearch(default.product, p.name) != -1 %]>
+ [% " selected" IF default.product && lsearch(default.product, p.name) != -1 %]>
[% p.name FILTER html %]
</option>
[% END %]