From 46ae5f29d06733c090d7e1f00543ea89428d672a Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Wed, 17 May 2023 18:53:10 -0600 Subject: [PATCH] Export dates from SK Download Spreadsheet in SQL format --- .../Civi/Api4/Action/SearchDisplay/AbstractRunAction.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.25.1