summaryrefslogtreecommitdiffstats
path: root/extensions/InlineHistory
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-11-07 08:40:53 +0100
committerByron Jones <bjones@mozilla.com>2012-11-07 08:40:53 +0100
commit40f5156e2e047efb2d863181ae7afb02c460d313 (patch)
tree2c754cf75f59bbbadb81f43e5f031a17509b5a47 /extensions/InlineHistory
parent7cd9fd570d61e316e2398a8b9db274d200d73bc4 (diff)
downloadbugzilla-40f5156e2e047efb2d863181ae7afb02c460d313.tar.gz
bugzilla-40f5156e2e047efb2d863181ae7afb02c460d313.tar.xz
Bug 801713: implement "bug shadowing" feature
Diffstat (limited to 'extensions/InlineHistory')
-rw-r--r--extensions/InlineHistory/Extension.pm8
1 files changed, 7 insertions, 1 deletions
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)) {