1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-19 05:12:41 +01:00

Make priority the default sort and order.

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-02-18 21:57:34 -08:00
parent cf22d8c6cb
commit 0e7729c78f

View file

@ -337,14 +337,14 @@ class ManiphestTaskListController extends ManiphestController {
'p' => 'priority', 'p' => 'priority',
); );
if (empty($orders[$order])) { if (empty($orders[$order])) {
$order = 'u'; $order = 'p';
} }
$order_by = $orders[$order]; $order_by = $orders[$order];
$order_names = array( $order_names = array(
'Priority' => 'p',
'Updated' => 'u', 'Updated' => 'u',
'Created' => 'c', 'Created' => 'c',
'Priority' => 'p',
); );
$uri = $request->getRequestURI(); $uri = $request->getRequestURI();
@ -382,15 +382,15 @@ class ManiphestTaskListController extends ManiphestController {
'o' => 'owner', 'o' => 'owner',
); );
if (empty($groups[$group])) { if (empty($groups[$group])) {
$group = 'n'; $group = 'p';
} }
$group_by = $groups[$group]; $group_by = $groups[$group];
$group_names = array( $group_names = array(
'None' => 'n',
'Priority' => 'p', 'Priority' => 'p',
'Owner' => 'o', 'Owner' => 'o',
'Status' => 's', 'Status' => 's',
'None' => 'n',
); );
$uri = $request->getRequestURI(); $uri = $request->getRequestURI();