Skip to content

Commit

Permalink
CST-334: Fix case entity import
Browse files Browse the repository at this point in the history
This error happened because the getvalue endpoint expects the return param to be a string type and not an array
  • Loading branch information
olayiwola-compucorp authored Sep 6, 2023
1 parent 9fea9f2 commit e53206e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Civicase/Helper/CaseCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static function getCategoryNameForCaseType($caseTypeId) {
try {
$result = civicrm_api3('CaseType', 'getvalue', [
'id' => $caseTypeId,
'return' => ['case_type_category'],
'return' => 'case_type_category',
]);

if (!empty($result['is_error'])) {
Expand Down

0 comments on commit e53206e

Please sign in to comment.