Closed
Bug 398600
Opened 17 years ago
Closed 17 years ago
Searching for bugs with a version of --- returns no bugs
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 362436
People
(Reporter: michael.j.tosh, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 Build Identifier: In Bugzilla/Search.pm, --- is converted to a null string. This prevents users for searching for --- as a version. This also blocks the ability to search for custom dropdown fields with the default value still set. Reproducible: Always Steps to Reproduce: 1. Create a version of --- (or create a custom field with type dropdown) 2. go to buglist.cgi?version=---&debug=1 or buglist.cgi?cf_fieldname=---&debug=1 3. view no results returned, and the debug SQL shows it quering for IN ('') Actual Results: no results Expected Results: list of bugs with the version or custom field set to --- Bugzilla/Search.pm: ( ",anyexact" => sub { my @list; foreach my $w (split(/,/, $v)) { if ($w eq "---" && $f !~ /milestone/) { $w = ""; } $q = $dbh->quote($w); trick_taint($q); push(@list, $q); } Delete this IF statement: if ($w eq "---" && $f !~ /milestone/) { $w = ""; }
This was also in Bugzilla 2.22, & Bugzilla 3.0.0
Version: unspecified → 3.0.2
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•