cvs: pearweb /public_html/bugs search.php /public_html/bugs/include functions.inc

From: Date: Sun, 22 Apr 2007 06:13:07 +0000
Subject: cvs: pearweb /public_html/bugs search.php /public_html/bugs/include functions.inc
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-46105@lists.php.net to get a copy of this message
dufuz Sun Apr 22 06:13:07 2007 UTC Modified files: /pearweb/public_html/bugs search.php /pearweb/public_html/bugs/include functions.inc Log: Request #10724 Show closed bugs since last release # For lack of a better acronym I'm calling this CRSLR in the menu # since it's short for "Closed Reports Since Last Release" http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/search.php?r1=1.79&r2=1.80&diff_format=u Index: pearweb/public_html/bugs/search.php diff -u pearweb/public_html/bugs/search.php:1.79 pearweb/public_html/bugs/search.php:1.80 --- pearweb/public_html/bugs/search.php:1.79 Sun Apr 22 05:03:10 2007 +++ pearweb/public_html/bugs/search.php Sun Apr 22 06:13:07 2007 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: search.php,v 1.79 2007/04/22 05:03:10 dufuz Exp $ + * @version $Id: search.php,v 1.80 2007/04/22 06:13:07 dufuz Exp $ */ /** @@ -137,6 +137,8 @@ $status = $_GET['status']; } switch ($status) { + case 'All': + break; case 'Closed': case 'Duplicate': case 'Critical': @@ -164,13 +166,30 @@ " ('Closed', 'Duplicate', 'Bogus')" . ' AND TO_DAYS(NOW())-TO_DAYS(bugdb.ts2) > 30'; break; - case 'All': - break; case 'Not Assigned': $where_clause .= ' AND bugdb.status NOT IN' . " ('Closed', 'Duplicate', 'Bogus', 'Assigned'," . " 'Wont Fix', 'Suspended')"; break; + // Closed Reports Since Last Release + case 'CRSLR': + if (!isset($_GET['package_name']) || count($_GET['package_name']) > 1) { + // Act as ALL + break; + } + + // Fetch the last release date + include_once 'pear-database-package.php'; + $releaseDate = package::getRecent(1, rinse($_GET['package_name'][0])); + if (PEAR::isError($releaseDate)) { + break; + } + + $where_clause .= ' AND bugdb.status IN' . + " ('Closed', 'Duplicate', 'Bogus', 'Wont Fix', 'Suspended') + AND (UNIX_TIMESTAMP('" . $releaseDate[0]['releasedate'] . "') < UNIX_TIMESTAMP(bugdb.ts2)) + "; + break; case 'Open': default: $where_clause .= " AND bugdb.status IN ('Open', 'Assigned'," . http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/include/functions.inc?r1=1.142&r2=1.143&diff_format=u Index: pearweb/public_html/bugs/include/functions.inc diff -u pearweb/public_html/bugs/include/functions.inc:1.142 pearweb/public_html/bugs/include/functions.inc:1.143 --- pearweb/public_html/bugs/include/functions.inc:1.142 Sun Apr 22 01:51:36 2007 +++ pearweb/public_html/bugs/include/functions.inc Sun Apr 22 06:13:07 2007 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: functions.inc,v 1.142 2007/04/22 01:51:36 dufuz Exp $ + * @version $Id: functions.inc,v 1.143 2007/04/22 06:13:07 dufuz Exp $ */ @@ -1203,7 +1203,9 @@ echo delim(); echo make_link('/bugs/search.php?cmd=display&amp;' . $pkgs . '&amp;status=All', 'All', '', $style['All']); - + echo delim(); + echo make_link('/bugs/search.php?cmd=display&amp;' . $pkgs . + '&amp;status=CRSLR', 'CRSLR', '', $style['CRSLR'], 'Closed reports since last release'); echo "\n</td></tr></table>\n"; echo '<hr />'; echo "\n\n<!-- END BUG NAV -->\n\n";

« previous php.pear.cvs (#46105) next »