diff options
author | Reed Loden <reed@reedloden.com> | 2010-05-07 05:44:58 +0200 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2010-05-07 05:44:58 +0200 |
commit | b4c91adafa45e4e1146ca1dabab27404dac6bab6 (patch) | |
tree | fa98b726cf2726aef6638289db59d8c3df86eda4 /Bugzilla/Bug.pm | |
parent | 2ca283e7bfc85d86ffd5f312bbab89eedcf9929b (diff) | |
download | bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.gz bugzilla-b4c91adafa45e4e1146ca1dabab27404dac6bab6.tar.xz |
Bug 395451 - "Bugzilla::BugMail needs to use Bug objects internally instead of direct SQL"
[r=mkanat a=mkanat]
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 9 |
1 files changed, 8 insertions, 1 deletions
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 |