Skip to content

Commit

Permalink
Merge pull request #881 from compucorp/MAE-955-fix-export-case
Browse files Browse the repository at this point in the history
MAE-955: Fix Cases export on CiviCRM versions >= 5.41.0
  • Loading branch information
omarabuhussein authored Nov 15, 2022
2 parents 650dd8d + 9cad1ec commit a3fbd7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 25 deletions.
11 changes: 0 additions & 11 deletions CRM/Case/Export/Form/Map.php

This file was deleted.

10 changes: 0 additions & 10 deletions CRM/Case/Export/Form/Select.php

This file was deleted.

8 changes: 4 additions & 4 deletions api/v3/Case/Getdetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ function _civicrm_api3_case_getdetails_spec(array &$spec) {
* @throws API_Exception
*/
function civicrm_api3_case_getdetails(array $params) {
list(
[
'resultMetadata' => $resultMetadata,
'params' => $params,
'toReturn' => $toReturn,
'sql' => $sql
) = CaseDetailsQuery::get($params);
'sql' => $sql,
] = CaseDetailsQuery::get($params);

// Call the case api.
$result = civicrm_api3_case_get(['sequential' => 0] + $params, $sql);
if (!empty($result['values'])) {
if (!empty($result['values']) && is_array($result['values'])) {
$ids = array_keys($result['values']);

// Remove legacy cruft.
Expand Down

0 comments on commit a3fbd7f

Please sign in to comment.