Skip to content

Commit 9465a77

Browse files
committed
Bug 1190601: Should be able to edit comments made from editing a current attachment
1 parent 0e478b8 commit 9465a77

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
# defined by the Mozilla Public License, v. 2.0.
77
#%]
88

9-
[% IF Param('edit_comments_group')
9+
[% IF comment.body != ''
10+
&& Param('edit_comments_group')
1011
&& user.in_group(Param('edit_comments_group'))
11-
&& (comment.type == 0 || comment.type == 5)
12-
&& comment.body != ''
12+
&& (comment.type == constants.CMT_NORMAL
13+
|| comment.type == constants.CMT_DUPE_OF
14+
|| comment.type == constants.CMT_ATTACHMENT_CREATED
15+
|| comment.type == constants.CMT_ATTACHMENT_UPDATED)
1316
%]
1417
<span id="edit_comment_link_[% comment.count FILTER html %]">
1518
[<a href="javascript:void(0);" id="edit_comment_edit_link_[% comment.count FILTER html %]"

0 commit comments

Comments
 (0)