From 40f5156e2e047efb2d863181ae7afb02c460d313 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 7 Nov 2012 15:40:53 +0800 Subject: Bug 801713: implement "bug shadowing" feature --- extensions/InlineHistory/Extension.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'extensions/InlineHistory') diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm index 61a263f61..2e388994a 100644 --- a/extensions/InlineHistory/Extension.pm +++ b/extensions/InlineHistory/Extension.pm @@ -90,10 +90,16 @@ sub template_before_process { $change->{added} = $change->{added} ? 'true' : 'false'; } + my $field_obj; + if ($change->{fieldname} =~ /^cf_/) { + $field_obj = Bugzilla::Field->new({ name => $change->{fieldname} }); + } + # identify buglist changes if ($change->{fieldname} eq 'blocked' || $change->{fieldname} eq 'dependson' || - $change->{fieldname} eq 'dupe' + $change->{fieldname} eq 'dupe' || + ($field_obj && $field_obj->type == FIELD_TYPE_BUG_ID) ) { $change->{buglist} = 1; foreach my $what (qw(removed added)) { -- cgit v1.2.3-24-g4f1b