]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1607030 - Selecting a most-used component goes into a loop when switching from...
authorKohei Yoshino <kohei.yoshino@gmail.com>
Wed, 8 Jan 2020 15:00:51 +0000 (10:00 -0500)
committerdklawren <dklawren@users.noreply.github.com>
Wed, 8 Jan 2020 15:00:51 +0000 (10:00 -0500)
extensions/ProdCompSearch/web/js/prod_comp_search.js

index dcad05820fabde40f8ae510210b5f182cb79da8a..9f40745ceff9486c7fb7a7f4aedab0f670843d9e 100644 (file)
@@ -176,8 +176,8 @@ Bugzilla.FrequentComponents = class FrequentComponents {
       const links = (await this.fetch()).map(({ product, component }) => {
         const params = new URLSearchParams(current_params);
 
-        params.append('product', product);
-        params.append('component', component);
+        params.set('product', product);
+        params.set('component', component);
 
         return {
           href: `${BUGZILLA.config.basepath}enter_bug.cgi?${params.toString()}`,