From b4c91adafa45e4e1146ca1dabab27404dac6bab6 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Thu, 6 May 2010 22:44:58 -0500 Subject: Bug 395451 - "Bugzilla::BugMail needs to use Bug objects internally instead of direct SQL" [r=mkanat a=mkanat] --- Bugzilla/Bug.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index def8ad360..c0c2d97ff 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -90,6 +90,7 @@ sub DB_COLUMNS { delta_ts estimated_time everconfirmed + lastdiffed op_sys priority product_id @@ -2612,6 +2613,11 @@ sub blocked { # Even bugs in an error state always have a bug_id. sub bug_id { $_[0]->{'bug_id'}; } +sub bug_group { + my ($self) = @_; + return join(', ', (map { $_->name } @{$self->groups_in})); +} + sub related_bugs { my ($self, $relationship) = @_; return [] if $self->{'error'}; @@ -3586,7 +3592,8 @@ sub _validate_attribute { qw(error groups product_id component_id comments milestoneurl attachments isopened flag_types num_attachment_flag_types - show_attachment_flags any_flags_requesteeble), + show_attachment_flags any_flags_requesteeble + lastdiffed), # Bug fields. Bugzilla::Bug->fields -- cgit v1.2.3-24-g4f1b