From: tara%tequilarista.org <> Date: Thu, 18 Jan 2001 10:14:11 +0000 (+0000) Subject: Landing patch for bug #58436 from Henrik Gemal X-Git-Tag: bugzilla-2.12~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b82afafeadec1e726af8b0007d3e82a33f81cbe0;p=thirdparty%2Fbugzilla.git Landing patch for bug #58436 from Henrik Gemal --- diff --git a/query.cgi b/query.cgi index ea96e37ee0..65a4cb29a8 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