Skip to content

[5.0.4] Bug 681635: De-duplicate values in Advanced Search - #245

Merged
justdave merged 1 commit into
bugzilla:5.0.4from
loganrosen:loganrosen-bug-681635-5-0-4
Sep 1, 2026
Merged

justdave merged 1 commit into
bugzilla:5.0.4from
loganrosen:loganrosen-bug-681635-5-0-4

Conversation

@loganrosen

Copy link
Copy Markdown
Contributor

Details

Advanced Search can show duplicate version or target milestone values when selected products use configured ordering rather than case-insensitive alphabetical ordering. merge_arrays used a two-pointer merge that assumed both inputs were already sorted, so overlapping values at different positions were not recognized as duplicates.

This is the 5.0.4 port of #244. It combines both inputs, sorts them case-insensitively, and then removes adjacent case-insensitive duplicates while preserving the incremental path that merges existing <select> options. A Perl TAP regression test executes the production JavaScript with Node and fails clearly if Node is unavailable.

Additional info

Test Plan

  1. Run node --check js/productform.js.
  2. Run perl runtests.pl 15.
  3. Confirm both the unsorted overlapping-values case and the incremental select-options case pass.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@justdave
justdave merged commit 5849118 into bugzilla:5.0.4 Sep 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants