From 49a634c18da85036a0850c7854545f36b73dc560 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 15 Jun 2012 17:57:34 +0800 Subject: Better fix instant search crashing when a product is not pre-selected --- template/en/default/search/search-instant.html.tmpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'template/en/default/search') diff --git a/template/en/default/search/search-instant.html.tmpl b/template/en/default/search/search-instant.html.tmpl index c14b681b1..9803dc9e1 100644 --- a/template/en/default/search/search-instant.html.tmpl +++ b/template/en/default/search/search-instant.html.tmpl @@ -15,7 +15,9 @@ yui = [ 'datatable', 'container' ] %] -[% default.product.push('Firefox') UNLESS default.product.size %] +[% UNLESS default.exists('product') && default.product.size %] + [% default.product = [ 'Firefox' ] %] +[% END %]