|
From: Ulf E. <ulf...@us...> - 2005-10-04 20:10:14
|
Update of /cvsroot/phpbt/phpbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18467 Modified Files: query.php Log Message: RFE #811153 - ability to query version_id = 0 Index: query.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/query.php,v retrieving revision 1.107 retrieving revision 1.108 diff -u -r1.107 -r1.108 --- query.php 2 Oct 2005 20:44:19 -0000 1.107 +++ query.php 4 Oct 2005 20:10:04 -0000 1.108 @@ -202,8 +202,8 @@ if (!empty($projects)) { $proj[] = "b.project_id = '$projects'"; if (!empty($versions) and $versions != 'All') $proj[] = "b.version_id = '$versions'"; - if (!empty($closedinversion) and $closedinversion != 'All') $proj[] = "b.closed_in_version_id = '$closedinversion'"; - if (!empty($tobeclosedinversion) and $tobeclosedinversion != 'All') $proj[] = "b.to_be_closed_in_version_id = '$tobeclosedinversion'"; + if (isset($closedinversion) and $closedinversion != '' and $closedinversion != 'All') $proj[] = "b.closed_in_version_id = '$closedinversion'"; + if (isset($tobeclosedinversion) and $tobeclosedinversion != '' and $tobeclosedinversion != 'All') $proj[] = "b.to_be_closed_in_version_id = '$tobeclosedinversion'"; if (!empty($components) and $components != 'All') $proj[] = "b.component_id = '$components'"; $query[] = '('.@join(' and ',$proj).')'; } elseif (!$perm->have_perm('Admin')) { // Filter results from hidden projects |