diff options
author | Byron Jones <bjones@mozilla.com> | 2013-11-06 15:42:56 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2013-11-06 15:42:56 +0100 |
commit | 3dd58e7d2c5c9ca32273cdcb17bfa10d67137c9d (patch) | |
tree | d86e8744b9c1a9802361fc0157d937b913250a52 | |
parent | 14ec8f2591a4299e6beeaf1c030f847eea6d87ff (diff) | |
download | bugzilla-3dd58e7d2c5c9ca32273cdcb17bfa10d67137c9d.tar.gz bugzilla-3dd58e7d2c5c9ca32273cdcb17bfa10d67137c9d.tar.xz |
Bug 935513: inline history no longer works in bugzilla 4.4
-rw-r--r-- | extensions/InlineHistory/Extension.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm index 9e6bdee92..6c86fcfa8 100644 --- a/extensions/InlineHistory/Extension.pm +++ b/extensions/InlineHistory/Extension.pm @@ -47,7 +47,9 @@ sub template_before_process { my $bug_id = $bug->id; # build bug activity - my ($activity) = Bugzilla::Bug::GetBugActivity($bug_id); + my ($activity) = $bug->can('get_activity') + ? $bug->get_activity() + : Bugzilla::Bug::GetBugActivity($bug_id); $activity = _add_duplicates($bug_id, $activity); if (scalar @$activity > MAXIMUM_ACTIVITY_COUNT) { |