From: larssandergreen Date: Thu, 18 May 2023 00:53:10 +0000 (-0600) Subject: Export dates from SK Download Spreadsheet in SQL format X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=46ae5f29d06733c090d7e1f00543ea89428d672a;p=civicrm-core.git Export dates from SK Download Spreadsheet in SQL format --- diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php index e61ae577f1..3c467e11f5 100644 --- a/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php +++ b/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php @@ -766,9 +766,9 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction { */ protected function formatViewValue($key, $rawValue, $data, $dataType) { if (is_array($rawValue)) { - return array_map(function($val) use ($key, $data) { - return $this->formatViewValue($key, $val, $data); - }, $rawValue, $dataType); + return array_map(function($val) use ($key, $data, $dataType) { + return $this->formatViewValue($key, $val, $data, $dataType); + }, $rawValue); } $formatted = $rawValue;