From 6381dc7a14eda05a686a0a0adffcb3b2eb992464 Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Thu, 2 Jun 2016 13:24:06 -0400 Subject: Bug 1269549 - Component watching prefix matches too much --- extensions/ComponentWatching/Extension.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/ComponentWatching/Extension.pm b/extensions/ComponentWatching/Extension.pm index a56b46249..f79b68595 100644 --- a/extensions/ComponentWatching/Extension.pm +++ b/extensions/ComponentWatching/Extension.pm @@ -408,11 +408,13 @@ sub bugmail_recipients { WHERE component_prefix IS NOT NULL AND (component_watch.product_id = ? OR component_watch.product_id = ?) AND components.name LIKE CONCAT(component_prefix, '%') + AND (components.id = ? OR components.id = ?) "); $sth->execute( $oldProductId, $newProductId, $oldComponentId, $newComponentId, - $oldProductId, $newProductId + $oldProductId, $newProductId, + $oldComponentId, $newComponentId, ); while (my ($uid) = $sth->fetchrow_array) { if (!exists $recipients->{$uid}) { -- cgit v1.2.3-24-g4f1b