From 2c783bc97fba584158481b1cfe0761c631482cbd Mon Sep 17 00:00:00 2001 From: joannechester Date: Wed, 14 Oct 2015 19:54:03 +1100 Subject: [PATCH] fixing-task-sort-order --- CRM/Contact/Form/Search.php | 1 + CRM/Contact/Task.php | 2 -- CRM/Event/Task.php | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Contact/Form/Search.php b/CRM/Contact/Form/Search.php index 90b4f6007f..cde0585c59 100644 --- a/CRM/Contact/Form/Search.php +++ b/CRM/Contact/Form/Search.php @@ -345,6 +345,7 @@ class CRM_Contact_Form_Search extends CRM_Core_Form_Search { } } + asort($this->_taskList); return $this->_taskList; } diff --git a/CRM/Contact/Task.php b/CRM/Contact/Task.php index fd59b3d62d..cffc5fdab9 100644 --- a/CRM/Contact/Task.php +++ b/CRM/Contact/Task.php @@ -252,7 +252,6 @@ class CRM_Contact_Task { CRM_Utils_Hook::searchTasks('contact', self::$_tasks); - asort(self::$_tasks); } } @@ -285,7 +284,6 @@ class CRM_Contact_Task { ) { unset($titles[self::DELETE_PERMANENTLY]); } - asort($titles); return $titles; } diff --git a/CRM/Event/Task.php b/CRM/Event/Task.php index c03a2fa47e..19af223e46 100644 --- a/CRM/Event/Task.php +++ b/CRM/Event/Task.php @@ -148,7 +148,7 @@ class CRM_Event_Task { } CRM_Utils_Hook::searchTasks('event', self::$_tasks); - asort(self::$_tasks); + //asort(self::$_tasks); return self::$_tasks; } @@ -229,6 +229,7 @@ class CRM_Event_Task { // make the print task by default $value = 2; } + asort(self::$_tasks); return array( self::$_tasks[$value]['class'], self::$_tasks[$value]['result'], -- 2.25.1