Closed Bug 118576 Opened 23 years ago Closed 23 years ago

JavaScript strict warnings in enter_bug.cgi

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.10
x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 95567

People

(Reporter: WeirdAl, Assigned: ddkilzer)

References

()

Details

Attachments

(1 file)

Warning: function onclick does not always return a value
Source Code:
if (this.form.short_desc.value =='') { alert('Please enter a summary sentence
for this bug.'); return false; }

Line 513 of http://lxr.mozilla.org/mozilla/source/webtools/bugzilla/enter_bug.cgi

Suggest editing the line to say:

 <INPUT TYPE=\"submit\" VALUE=\"    Commit    \" ONCLICK=\"if
(this.form.short_desc.value =='') { alert('Please enter a summary sentence for
this bug.'); return false; }; return true;\">
Attached patch Patch v.1Splinter Review
Patch described in poster's comments.
Keywords: patch, review
Taking bug since I posted a patch.  This is a pretty trivial fix.

Setting milestone to 2.18 (though fix is trivial enough for 2.16).
Assignee: myk → ddkilzer
Target Milestone: --- → Bugzilla 2.18
BTW, Alex, which browser reported this warning?  A cut-n-paste of the
USER_AGENT string from near the bottom ofthis web page will do:

  http://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla

Mozilla-0.9.6 for Linux doesn't complain about the JavaScript in
question.  Neither does Netsacpe Communicator 4.77 for Linux.
Status: NEW → ASSIGNED
Depends on: 103953

*** This bug has been marked as a duplicate of 95567 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Verified dupe
Status: RESOLVED → VERIFIED
clearing target milestone on resolved non-FIXED bugs so they'll get re-triaged
if they get reopened.
Target Milestone: Bugzilla 2.18 → ---
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: