summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-11-20 15:30:46 +0100
committerByron Jones <bjones@mozilla.com>2012-11-20 15:30:46 +0100
commitc32d40fa6b8484341e61a144cbe9283d57f51ce0 (patch)
tree64d235ba722241b9ae721012c167cd845ccccb6f
parent254b841d56c1ee59851eb83234d9cc53ca90dae2 (diff)
downloadbugzilla-c32d40fa6b8484341e61a144cbe9283d57f51ce0.tar.gz
bugzilla-c32d40fa6b8484341e61a144cbe9283d57f51ce0.tar.xz
Update Push to skip unnecessary processing of Bugzilla::Extension objects
-rw-r--r--extensions/Push/Extension.pm7
1 files 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);
}