From c32d40fa6b8484341e61a144cbe9283d57f51ce0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 20 Nov 2012 22:30:46 +0800 Subject: Update Push to skip unnecessary processing of Bugzilla::Extension objects --- extensions/Push/Extension.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extensions/Push/Extension.pm b/extensions/Push/Extension.pm index 822d8da6d..ff7f21295 100644 --- a/extensions/Push/Extension.pm +++ b/extensions/Push/Extension.pm @@ -326,7 +326,8 @@ sub object_end_of_create { # possible; don't process them here to avoid duplicate messages my $object = _get_object_from_args($args); return if !$object || - $object->isa('Bugzilla::Bug'); + $object->isa('Bugzilla::Bug') || + blessed($object) =~ /^Bugzilla::Extension/; $self->_object_created($args); } @@ -344,7 +345,9 @@ sub object_end_of_update { # it's better to process objects from a non-generic end_of_update where # possible; don't process them here to avoid duplicate messages - return if $object->isa('Bugzilla::Bug') || $object->isa('Bugzilla::Flag'); + return if $object->isa('Bugzilla::Bug') || + $object->isa('Bugzilla::Flag') || + blessed($object) =~ /^Bugzilla::Extension/; $self->_object_modified($args); } -- cgit v1.2.3-24-g4f1b