diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2013-10-17 21:53:37 +0200 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2013-10-17 21:53:37 +0200 |
commit | 07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc (patch) | |
tree | 137be9eb5f7987a49bf222ee5a2c6e4a8901cb67 /extensions/InlineHistory | |
parent | Merge branch 'upstream' (diff) | |
download | bugzilla-07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc.tar.gz bugzilla-07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc.tar.bz2 bugzilla-07bd7417e8e9b5a63a645a8d8b334c15b14c7ddc.zip |
InlineHistory: Bugzilla 4.4 compatibility
Diffstat (limited to 'extensions/InlineHistory')
-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 df7ae9f62..29c54b583 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) { |