summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-08-04 23:05:04 +0200
committerDavid Lawrence <dkl@mozilla.com>2015-08-04 23:05:13 +0200
commit9465a77fad2f80e4e3615b0aa0af36bc5da11122 (patch)
tree91499511602c6da8b70f238ff4e1f7636d5eba33
parent0e478b849f1be210f58fadef820800b210687013 (diff)
downloadbugzilla-9465a77fad2f80e4e3615b0aa0af36bc5da11122.tar.gz
bugzilla-9465a77fad2f80e4e3615b0aa0af36bc5da11122.tar.xz
Bug 1190601: Should be able to edit comments made from editing a current attachment
-rw-r--r--extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl b/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
index 89249efdf..cf54c71ed 100644
--- a/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
+++ b/extensions/EditComments/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
@@ -6,10 +6,13 @@
# defined by the Mozilla Public License, v. 2.0.
#%]
-[% IF Param('edit_comments_group')
+[% IF comment.body != ''
+ && Param('edit_comments_group')
&& user.in_group(Param('edit_comments_group'))
- && (comment.type == 0 || comment.type == 5)
- && comment.body != ''
+ && (comment.type == constants.CMT_NORMAL
+ || comment.type == constants.CMT_DUPE_OF
+ || comment.type == constants.CMT_ATTACHMENT_CREATED
+ || comment.type == constants.CMT_ATTACHMENT_UPDATED)
%]
<span id="edit_comment_link_[% comment.count FILTER html %]">
[<a href="javascript:void(0);" id="edit_comment_edit_link_[% comment.count FILTER html %]"