Closed Bug 460909 Opened 16 years ago Closed 16 years ago

Mass edit bug form does not allow adding private comments

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file, 3 obsolete files)

The mass edit form in buglist.cgi does not display the "Private" checkbox that is normally displayed in a single bug show_bug.cgi. Attaching patch that adds the private checkbox to edit-multiple.html.tmpl. Dave
Attachment #344018 - Flags: review?(LpSolit)
Assignee: create-and-change → dkl
Severity: normal → enhancement
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 3.4
Version: unspecified → 3.3
Comment on attachment 344018 [details] [diff] [review] Patch to add private comment in mass bug edit form (v1) >+[% IF Param("insidergroup") && user.in_group(Param("insidergroup")) %] Please write [% IF user.is_insider %]. I know you copied this code from bug/edit/html.tmpl, but it's old code. >+ onClick="updateCommentTagControl(this, form)"/> updateCommentTagControl() is undefined in this template. Its definition is in bug/edit.html.tmpl. You probably have to move this function in one of the js/*.js files. Also, note that this implementation annoys me due to bug 299895, i.e. allowing each product to have its own insider group. Maybe when bug 299895 is implemented, all we have to do is to add a warning here that the privacy bit will only apply to products where the user belongs to the insider group.
Attachment #344018 - Flags: review?(LpSolit) → review-
Updated patch attached: 1. Use user.is_insider instead of user.in_group() 2. Moved getCommentTagControl to js/field.js which is already imported by show_bug.cgi and buglist.cgi. I also agree that having an insider group(s) per product would be very useful as I have had that requested here as well. I would be able to test such a patch something was implemented in the future. Dave
Attachment #344018 - Attachment is obsolete: true
Attachment #344121 - Flags: review?(LpSolit)
Comment on attachment 344121 [details] [diff] [review] Patch to add private comment in mass bug edit form (v2) >Index: template/en/default/list/edit-multiple.html.tmpl >+[% IF Param("insidergroup") && user.is_insider %] No, Param("insidergroup") must go away. Simply write [% IF user.is_insider %].
Missed that user.is_insider also checks for Bugzilla->params->{insidergroup} pointed out by LpSolit. New patch for review. Dave
Attachment #344121 - Attachment is obsolete: true
Attachment #344230 - Flags: review?(LpSolit)
Attachment #344121 - Flags: review?(LpSolit)
Comment on attachment 344230 [details] [diff] [review] Patch to add private comment in mass bug edit form (v3) Works fine. r=LpSolit Note that you have to fix the bitrot in js/field.js as new functions have been added there meanwhile. As I had to unbitrot it myself to test your patch, I will attach the unbitrotten patch, so that you just have to apply it, cleanly.
Attachment #344230 - Flags: review?(LpSolit) → review+
Attachment #344230 - Attachment is obsolete: true
Attachment #353418 - Flags: review+
Status: NEW → ASSIGNED
Flags: approval+
tip: Checking in js/field.js; /cvsroot/mozilla/webtools/bugzilla/js/field.js,v <-- field.js new revision: 1.13; previous revision: 1.12 done Checking in template/en/default/bug/edit.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/edit.html.tmpl,v <-- edit.html.tmpl new revision: 1.143; previous revision: 1.142 done Checking in template/en/default/list/edit-multiple.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/list/edit-multiple.html.tmpl,v <-- edit-multiple.html.tmpl new revision: 1.52; previous revision: 1.51 done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Keywords: relnote
Flags: testcase?
Added to the release notes for Bugzilla 3.4 in bug 494037.
Keywords: relnote
See Also: → 893595
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: