svn: /web/php-bugs/trunk/ include/query.php www/search.php
| From: | Felipe Pena | Date: | Sun, 20 Jun 2010 16:46:05 +0000 |
| Subject: | svn: /web/php-bugs/trunk/ include/query.php www/search.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-8399@lists.php.net to get a copy of this message | ||
felipe Sun, 20 Jun 2010 16:46:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300618
Log:
- Added possibility to search only for bugs with patch attached
Changed paths:
U web/php-bugs/trunk/include/query.php
U web/php-bugs/trunk/www/search.php
Modified: web/php-bugs/trunk/include/query.php
===================================================================
--- web/php-bugs/trunk/include/query.php 2010-06-20 16:33:16 UTC (rev 300617)
+++ web/php-bugs/trunk/include/query.php 2010-06-20 16:46:05 UTC (rev 300618)
@@ -29,6 +29,7 @@
$php_os = !empty($_GET['php_os']) ? $_GET['php_os'] : '';
$php_os_not = !empty($_GET['php_os_not']) ? 'not' : '';
$phpver = !empty($_GET['phpver']) ? $_GET['phpver'] : '';
+$patch = !empty($_GET['patch']) ? $_GET['patch'] : '';
$begin = (int) (!empty($_GET['begin']) ? $_GET['begin'] : 0);
$limit = (defined('MAX_BUGS_RETURN')) ? MAX_BUGS_RETURN : 30;
if (!empty($_GET['limit'])) {
@@ -145,6 +146,10 @@
if ($phpver != '') {
$where_clause .= " AND bugdb.php_version LIKE '" . $dbh->escape($phpver) .
"%'";
}
+
+ if ($patch != '') {
+ $where_clause .= " AND EXISTS (SELECT 1 FROM bugdb_patchtracker WHERE bugdb_id = bugdb.id
LIMIT 1)";
+ }
if ($assign != '') {
$where_clause .= ' AND bugdb.assign = ' . $dbh->quote($assign);
Modified: web/php-bugs/trunk/www/search.php
===================================================================
--- web/php-bugs/trunk/www/search.php 2010-06-20 16:33:16 UTC (rev 300617)
+++ web/php-bugs/trunk/www/search.php 2010-06-20 16:46:05 UTC (rev 300618)
@@ -280,6 +280,11 @@
<td> </td><td style="white-space: nowrap">Return bugs
updated</td>
<td><select name="bug_updated"><?php
show_byage_options($bug_updated);?></select></td>
</tr>
+<tr valign="top">
+ <th>Patch</th>
+ <td style="white-space: nowrap">Return only bugs reported with <b>patch
attached</b></td>
+ <td><input type="checkbox" name="patch" value="S" <?php
echo $patch == 'S' ? " checked" : "" ?> /></td>
+</tr>
</table>
</form>