isprivate
type
extra_data
+ is_markdown
);
use constant DB_TABLE => 'longdescs';
sub set_is_private { $_[0]->set('isprivate', $_[1]); }
sub set_type { $_[0]->set('type', $_[1]); }
sub set_extra_data { $_[0]->set('extra_data', $_[1]); }
+sub set_is_markdown { $_[0]->set('is_markdown', $_[1]); }
sub add_tag {
my ($self, $tag) = @_;
}
}
+sub object_end_of_create {
+ my ($self, $args) = @_;
+ my $class = $args->{class};
+
+ if ($class eq 'Bugzilla::Comment') {
+ my $comment = $args->{object};
+ if ($comment->body =~ /^Review of attachment (\d+)\s*:\n-{65}\n\n/s) {
+ $comment->set_is_markdown(0);
+ $comment->update;
+ }
+ }
+}
sub bug_format_comment {
my ($self, $args) = @_;