Closed
Bug 300501
Opened 19 years ago
Closed 19 years ago
Move GetBugActivity into Bug.pm
Categories
(Bugzilla :: Bugzilla-General, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.22
People
(Reporter: LpSolit, Assigned: LpSolit)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
10.61 KB,
patch
|
wicked
:
review+
|
Details | Diff | Splinter Review |
This routine is actually in CGI.pl.
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.22
| Assignee | ||
Comment 1•19 years ago
|
||
This routine is only used in process_bug.cgi (midair collisions) and show_activity.cgi.
Attachment #189067 -
Flags: review?(wicked)
| Assignee | ||
Comment 2•19 years ago
|
||
Comment on attachment 189067 [details] [diff] [review] patch, v1 >+ my $activity_visible = 1; >+ >+ # check if the user should see this field's activity >+ if ($fieldname eq 'remaining_time' >+ || $fieldname eq 'estimated_time' >+ || $fieldname eq 'work_time' >+ || $fieldname eq 'deadline') >+ { >+ $activity_visible = UserInGroup(Param('timetrackinggroup')) ? 1 : 0; >+ } else { >+ $activity_visible = 1; >+ } I could even set $activity_visible as undefined initially, or remove the ELSE block. That's a nit anyway.
Comment 3•19 years ago
|
||
Comment on attachment 189067 [details] [diff] [review] patch, v1 Tested on tip, looks to be working. I tried midairing and viewing bug activity with various fields including private attachments.
Attachment #189067 -
Flags: review?(wicked) → review+
| Assignee | ||
Updated•19 years ago
|
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
| Assignee | ||
Comment 4•19 years ago
|
||
Checking in CGI.pl; /cvsroot/mozilla/webtools/bugzilla/CGI.pl,v <-- CGI.pl new revision: 1.244; previous revision: 1.243 done Checking in process_bug.cgi; /cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v <-- process_bug.cgi new revision: 1.265; previous revision: 1.264 done Checking in show_activity.cgi; /cvsroot/mozilla/webtools/bugzilla/show_activity.cgi,v <-- show_activity.cgi new revision: 1.16; previous revision: 1.15 done Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.82; previous revision: 1.81 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•