svn: /web/php-bugs/trunk/include/ functions.php
| From: | Felipe Pena | Date: | Sat, 02 Jul 2011 19:03:31 +0000 |
| Subject: | svn: /web/php-bugs/trunk/include/ functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11438@lists.php.net to get a copy of this message | ||
felipe Sat, 02 Jul 2011 19:03:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312820
Log:
- Let put the trysnap* ones together in the begin of quickfix list
Changed paths:
U web/php-bugs/trunk/include/functions.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2011-07-02 18:36:13 UTC (rev 312819)
+++ web/php-bugs/trunk/include/functions.php 2011-07-02 19:03:31 UTC (rev 312820)
@@ -1472,8 +1472,11 @@
if ($project !== false)
$where.= "WHERE (project = '{$project}' OR project = '')";
+ /* Put trysvn* in the beginning of the list */
+ $order_by = "CASE ID WHEN 1 THEN -4 WHEN 2 THEN -3 WHEN 3 THEN -1 WHEN 29 THEN -2 ELSE ID
END";
+
$resolves = $variations = array();
- $res = $dbh->prepare("SELECT * FROM bugdb_resolves $where")->execute(array());
+ $res = $dbh->prepare("SELECT * FROM bugdb_resolves $where
$order_by")->execute(array());
if (PEAR::isError($res)) {
throw new Exception("SQL Error in get_resolve_reasons");
}