Closed Bug 302694 Opened 20 years ago Closed 20 years ago

Show multiple bugs emits errors about addReplyLink missing

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.20
defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: wicked, Assigned: Wurblzap)

References

Details

(Keywords: regression, Whiteboard: [doesn't affect 2.18])

Attachments

(2 files, 1 obsolete file)

When multiple bugs is shown using either Long Format or Format For Printing button/link there's one JavaScript error per bug shown. This happens because JavaScript function addReplyLink is called but it isn't defined.
Attached file Modified comments.html.tmpl (obsolete) —
I've noticed the same problem in my installation (2.20rc2). The workaround for me was to add [% IF mode == "edit" %] ... [% END %] around the lines <script type="text/javascript"><!-- addReplyLink(0); //--></script> I don't know if this is the right solution, but it works for me.
Attachment #195854 - Attachment mime type: application/octet-stream → text/plain
*** Bug 318134 has been marked as a duplicate of this bug. ***
Attachment #195854 - Flags: review?(LpSolit)
Ingo's variant - unrotted - for HEAD (doesn't apply to the branch, unfortunately) - with [%%] so that there is no whitespace between the reply link and the preceding &nbsp;
Assignee: create-and-change → wurblzap
Attachment #195854 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #204469 - Flags: review?(LpSolit)
Attachment #195854 - Flags: review?(LpSolit)
Comment on attachment 204469 [details] [diff] [review] Patch 1.0 in unified format Nice catch! My Javascript console was full of this error message. Please backport it to 2.20. 2.18 is not affected (the culprit is bug 199048 which landed on 2.19).
Attachment #204469 - Flags: review?(LpSolit) → review+
Whiteboard: [doesn't affect 2.18]
Target Milestone: --- → Bugzilla 2.20
Attachment #204864 - Flags: review?(LpSolit)
Keywords: regression
Comment on attachment 204864 [details] [diff] [review] Patch 1.0 for the 2.20 branch r=LpSolit
Attachment #204864 - Flags: review?(LpSolit) → review+
Flags: approval?
Flags: approval2.20?
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
Thanks, Ingo! Tip: Checking in template/en/default/bug/comments.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/comments.html.tmpl,v <-- comments.html.tmpl new revision: 1.24; previous revision: 1.23 done 2.20 Branch: Checking in template/en/default/bug/comments.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/comments.html.tmpl,v <-- comments.html.tmpl new revision: 1.18.2.2; previous revision: 1.18.2.1 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 322745 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: