cvs: php-bugs-web / search.php

From: Date: Tue, 16 Oct 2001 08:36:17 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-7015@lists.php.net to get a copy of this message
ssb Tue Oct 16 04:36:17 2001 EDT Modified files: /php-bugs-web search.php Log: * on request from Derick: don't show "Closed" and "Bogus" bugs when searching "All" assigned bugs Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.7 php-bugs-web/search.php:1.8 --- php-bugs-web/search.php:1.7 Tue Oct 16 03:59:41 2001 +++ php-bugs-web/search.php Tue Oct 16 04:36:17 2001 @@ -30,6 +30,8 @@ $where_clause .= " AND status='Feedback' AND TO_DAYS(NOW())-TO_DAYS(ts2)>60"; } elseif ($status == "Stale") { $where_clause .= " AND status != 'Closed' AND status != 'Duplicate' AND status != 'Bogus' AND TO_DAYS(NOW())-TO_DAYS(ts2) > 30"; + } elseif ($status == "All" && !empty($assign)) { + $where_clause .= " AND status != 'Closed' AND status != 'Bogus'"; } elseif ($status && $status != "All") { $where_clause .= " AND status='$status'"; } @@ -93,7 +95,7 @@ if (!$res) die(htmlspecialchars($query)."<br>".mysql_error()); $rows = mysql_numrows($res); - $link = "$PHP_SELF?cmd=display&amp;bug_type=" . urlencode ($bug_type) . "&amp;status=$status&amp;search_for=".urlencode(htmlspecialchars(stripslashes($search_for)))."&amp;php_os=".htmlspecialchars(stripslashes($php_os))."&amp;bug_age=$bug_age&amp;by=$by&amp;order_by=$order_by&amp;direction=$direction&amp;phpver=$phpver&amp;limit=$limit"; + $link = "$PHP_SELF?cmd=display&amp;bug_type=" . urlencode ($bug_type) . "&amp;status=$status&amp;search_for=".urlencode(htmlspecialchars(stripslashes($search_for)))."&amp;php_os=".htmlspecialchars(stripslashes($php_os))."&amp;bug_age=$bug_age&amp;by=$by&amp;order_by=$order_by&amp;direction=$direction&amp;phpver=$phpver&amp;limit=$limit&amp;assign=$assign"; ?> <table align="center" border="0" cellspacing="2" width="95%"> <?php show_prev_next($begin,$rows,$total_rows,$link,$limit);?>

« previous php.mirrors (#7015) next »