Closed Bug 267647 Opened 20 years ago Closed 20 years ago

javascript error when gong to page editflagtypes.cgi?action=enter&target_type=bug

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

x86
Windows 2000
defect
Not set
blocker

Tracking

()

RESOLVED DUPLICATE of bug 241814

People

(Reporter: kobiso, Assigned: myk)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.3705; .NET CLR 1.1.4322)
Build Identifier: using IE 6.01

when in page bugzilla/editflagtypes.cgi and pressing the link "Create Flag Type 
for Bugs " i go to the page /editflagtypes.cgi?action=enter&target_type=bug
and get a javascript error Line 37: Error: 'forms' is undefined

Reproducible: Always
Steps to Reproduce:
1. from bugzilla/editflagtypes.cgi 
2. press link  Create Flag Type for Bugs 
3.



Expected Results:  
no javascript errors
Which version of bugzilla have you got? Which browser are you using (Internet
Explorer)?
using ie 6.0.28 with sp1
windows 2000

bugzilla 2.18rc3
This was fixed in bug 241814 (the second attachment), but no official Bugzilla
package includes the code yet, since it was fixed on 13th of December 2004.

The part of that patch that fixes the problem is:

-  onload="selectProduct(forms[0], 'product', 'component', '__Any__');"
+  onload="selectProduct(document.forms[0], 'product', 'component', '__Any__');"

You can:

-> wait until 2.18 (or 2.18rc4) appears
-> apply the patch manually from that bug
-> change "forms[0]" into "document.forms[0]" manually in the source code
(although that fixes only a very small part of the problem)
-> upgrade to CVS tip (trunk)
-> upgrade via CVS to the BUGZILLA-2_18-BRANCH (the latest code of the stable
branch)

*** This bug has been marked as a duplicate of 241814 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.