Closed Bug 300501 Opened 19 years ago Closed 19 years ago

Move GetBugActivity into Bug.pm

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.20
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: LpSolit, Assigned: LpSolit)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This routine is actually in CGI.pl.
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.22
Attached patch patch, v1Splinter Review
This routine is only used in process_bug.cgi (midair collisions) and
show_activity.cgi.
Attachment #189067 - Flags: review?(wicked)
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 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+
Flags: approval?
Flags: approval? → approval+
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.

Attachment

General

Created:
Updated:
Size: