diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-06-02 19:24:06 +0200 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-06-02 19:24:06 +0200 |
commit | 6381dc7a14eda05a686a0a0adffcb3b2eb992464 (patch) | |
tree | 09603985a3fe7e84f78e53c934f1db930b2bea32 /extensions/ComponentWatching | |
parent | 991b48e7cb918b704a3f7abd9e90fc198fcd7eaf (diff) | |
download | bugzilla-6381dc7a14eda05a686a0a0adffcb3b2eb992464.tar.gz bugzilla-6381dc7a14eda05a686a0a0adffcb3b2eb992464.tar.xz |
Bug 1269549 - Component watching prefix matches too much
Diffstat (limited to 'extensions/ComponentWatching')
-rw-r--r-- | extensions/ComponentWatching/Extension.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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}) { |