summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-07-14 21:54:59 +0200
committermkanat%bugzilla.org <>2007-07-14 21:54:59 +0200
commitc62b0d1928f8b45a3f624b9b8c01948a9626c8cb (patch)
tree8477d0e4a310643941569f2695f1584a1877ac0d /Bugzilla/Bug.pm
parent65d406682dbaaa2a50b468387a22353a10a84bbd (diff)
downloadbugzilla-c62b0d1928f8b45a3f624b9b8c01948a9626c8cb.tar.gz
bugzilla-c62b0d1928f8b45a3f624b9b8c01948a9626c8cb.tar.xz
Bug 388045: Move updating of cc_accessible and reporter_accessible into Bugzilla::Bug (from process_bug)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/Bug.pm')
-rwxr-xr-xBugzilla/Bug.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index cf1051a74..ad9146504 100755
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -151,12 +151,15 @@ sub VALIDATORS {
use constant UPDATE_VALIDATORS => {
bug_status => \&_check_bug_status,
+ cclist_accessible => \&Bugzilla::Object::check_boolean,
+ reporter_accessible => \&Bugzilla::Object::check_boolean,
resolution => \&_check_resolution,
};
sub UPDATE_COLUMNS {
my @columns = qw(
alias
+ cclist_accessible
everconfirmed
bug_file_loc
bug_severity
@@ -164,6 +167,7 @@ sub UPDATE_COLUMNS {
op_sys
priority
rep_platform
+ reporter_accessible
resolution
short_desc
status_whiteboard
@@ -1207,6 +1211,7 @@ sub _set_global_validator {
#################
sub set_alias { $_[0]->set('alias', $_[1]); }
+sub set_cclist_accessible { $_[0]->set('cclist_accessible', $_[1]); }
sub set_custom_field {
my ($self, $field, $value) = @_;
ThrowCodeError('field_not_custom', { field => $field }) if !$field->custom;
@@ -1226,6 +1231,7 @@ sub _set_everconfirmed { $_[0]->set('everconfirmed', $_[1]); }
sub set_op_sys { $_[0]->set('op_sys', $_[1]); }
sub set_platform { $_[0]->set('rep_platform', $_[1]); }
sub set_priority { $_[0]->set('priority', $_[1]); }
+sub set_reporter_accessible { $_[0]->set('reporter_accessible', $_[1]); }
sub set_resolution { $_[0]->set('resolution', $_[1]); }
sub set_severity { $_[0]->set('bug_severity', $_[1]); }
sub set_status {