From: Kohei Yoshino Date: Wed, 8 Jan 2020 15:00:51 +0000 (-0500) Subject: Bug 1607030 - Selecting a most-used component goes into a loop when switching from... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1cb95c2f970cb5fb10b636ca60147b01514ece1c;p=thirdparty%2Fbugzilla.git Bug 1607030 - Selecting a most-used component goes into a loop when switching from guided bug entry form --- diff --git a/extensions/ProdCompSearch/web/js/prod_comp_search.js b/extensions/ProdCompSearch/web/js/prod_comp_search.js index dcad05820..9f40745ce 100644 --- a/extensions/ProdCompSearch/web/js/prod_comp_search.js +++ b/extensions/ProdCompSearch/web/js/prod_comp_search.js @@ -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()}`,