https://src.bluestatic.org
/
bugdar.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
984fe99
)
Do not put duplicate entries into the search query when searching by products/version...
author
Robert Sesek <rsesek@bluestatic.org>
Wed, 14 Jan 2009 17:48:21 +0000
(12:48 -0500)
committer
Robert Sesek <rsesek@bluestatic.org>
Wed, 14 Jan 2009 17:48:21 +0000
(12:48 -0500)
* search.php
search.php
patch
|
blob
|
history
diff --git
a/search.php
b/search.php
index 4b323e2ef39fdcb9849b91808a6d022d96075417..428f1440ce3f5440d1d0c7189c056f50124f6899 100644
(file)
--- a/
search.php
+++ b/
search.php
@@
-245,9
+245,9
@@
if ($_REQUEST['do'] == 'process')
{
$product = explode(',', $prod);
$product = $input->clean($product, TYPE_UINT);
- $products[
]
= $product[0];
- $components[
]
= $product[1];
- $versions[
]
= $product[2];
+ $products[
$product[0]]
= $product[0];
+ $components[
$product[1]]
= $product[1];
+ $versions[
$product[2]]
= $product[2];
}
$querybuild['pcv'] = "AND bug.product IN (" . implode(',', $products) . ") AND bug.component IN (" . implode(',', $components) . ") AND bug.version IN (" . implode(',', $versions) . ")";
}