From b82afafeadec1e726af8b0007d3e82a33f81cbe0 Mon Sep 17 00:00:00 2001 From: "tara%tequilarista.org" <> Date: Thu, 18 Jan 2001 10:14:11 +0000 Subject: Landing patch for bug #58436 from Henrik Gemal --- query.cgi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index ea96e37ee..65a4cb29a 100755 --- a/query.cgi +++ b/query.cgi @@ -428,7 +428,7 @@ function selectProduct(f) { if (doit) { var l = f.component.length; f.component[l] = new Option(c, c); - if (csel[c]) { + if (csel.length && csel[c]) { f.component[l].selected = true; } } @@ -445,13 +445,13 @@ function selectProduct(f) { for (v in vers) { if (typeof(vers[v]) == 'function') continue; - var doit = doall; + doit = doall; for (i=0 ; !doit && i