|
From: Benjamin C. <bc...@us...> - 2002-06-17 12:34:02
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv3205
Modified Files:
query.php
Log Message:
Fixes bug #561074 - Opera submits the incorrect value on the query page for the components and versions
Index: query.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/query.php,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -r1.81 -r1.82
--- query.php 14 Jun 2002 15:26:05 -0000 1.81
+++ query.php 17 Jun 2002 12:33:59 -0000 1.82
@@ -129,8 +129,8 @@
// Project/Version/Component
if (!empty($projects)) {
$proj[] = "b.project_id = $projects";
- if (!empty($versions)) $proj[] = "b.version_id = $versions";
- if (!empty($components)) $proj[] = "b.component_id = $components";
+ if (!empty($versions) and $versions != 'All') $proj[] = "b.version_id = $versions";
+ if (!empty($components) and $components != 'All') $proj[] = "b.component_id = $components";
$query[] = '('.delimit_list(' and ',$proj).')';
} elseif (!$perm->have_perm('Admin')) { // Filter results from hidden projects
$query[] = "b.project_id not in ($restricted_projects)";
|