From 112c2ebfbe5f596b7a9b8893214a4d1d4b61ae1d Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Mon, 4 Feb 2013 18:59:46 -0800 Subject: [PATCH] make sort controls only show up if sorting will work Summary: T2326 tells the tale. this is the fix. Test Plan: verified that queries that shouldn't be sortable weren't. also had a phlog in there a bit to sanity check things faster Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2326 Differential Revision: https://secure.phabricator.com/D4816 --- .../maniphest/controller/ManiphestTaskListController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/maniphest/controller/ManiphestTaskListController.php b/src/applications/maniphest/controller/ManiphestTaskListController.php index 3b8db2ed52..971d9ea70e 100644 --- a/src/applications/maniphest/controller/ManiphestTaskListController.php +++ b/src/applications/maniphest/controller/ManiphestTaskListController.php @@ -330,8 +330,8 @@ final class ManiphestTaskListController extends ManiphestController { $group = $query->getParameter('group'); $order = $query->getParameter('order'); $is_draggable = - ($group == 'priority') || - ($group == 'none' && $order == 'priority'); + ($order == 'priority') && + ($group == 'none' || $group == 'priority'); $lists = new AphrontNullView(); $lists->appendChild('
');