From a95d6871110b8a1ebc44b2aeab04e44c52e4fd49 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 4 Jun 2014 14:16:26 -0700 Subject: [PATCH] crmCaseType - Get full, sorted list of activities and relationship-types --- CRM/Case/Info.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/CRM/Case/Info.php b/CRM/Case/Info.php index 8bd728d2c7..6cdfb92650 100644 --- a/CRM/Case/Info.php +++ b/CRM/Case/Info.php @@ -67,8 +67,19 @@ class CRM_Case_Info extends CRM_Core_Component_Info { ); // Need full OptionValue records $actStatuses = civicrm_api3('OptionValue', 'get', array('option_group_id' => 'activity_status')); - $actTypes = civicrm_api3('OptionValue', 'get', array('option_group_id' => 'activity_type')); - $relTypes = civicrm_api3('RelationshipType', 'get', array()); + $actTypes = civicrm_api3('OptionValue', 'get', array( + 'option_group_id' => 'activity_type', + 'options' => array( + 'sort' => 'name', + 'limit' => 0, + ), + )); + $relTypes = civicrm_api3('RelationshipType', 'get', array( + 'options' => array( + 'sort' => CRM_Case_XMLProcessor::REL_TYPE_CNAME, + 'limit' => 0, + ) + )); CRM_Core_Resources::singleton()->addSetting(array( 'crmCaseType' => array( -- 2.25.1