From a60ed8408e7bc13ee1686e8869e914afa7adc1d5 Mon Sep 17 00:00:00 2001 From: yashodha Date: Wed, 22 Jan 2014 16:22:19 +0530 Subject: [PATCH] fix activity type name/label in api's --- api/v3/Activity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v3/Activity.php b/api/v3/Activity.php index 96b40dd26a..e764770186 100644 --- a/api/v3/Activity.php +++ b/api/v3/Activity.php @@ -369,12 +369,12 @@ SELECT count(*) // this should be handled by wrapper layer & probably the api would already manage it //correctly by doing pseudoconstant validation // needs testing - $activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'name', TRUE); + $activityTypes = CRM_Activity_BAO_Activity::buildOptions('activity_type_id', 'validate'); $activityName = CRM_Utils_Array::value('activity_name', $params); $activityName = ucfirst($activityName); $activityLabel = CRM_Utils_Array::value('activity_label', $params); if ($activityLabel) { - $activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE); + $activityTypes = CRM_Activity_BAO_Activity::buildOptions('activity_type_id', 'create'); } $activityTypeId = CRM_Utils_Array::value('activity_type_id', $params); -- 2.25.1