diff --git a/ext/search/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php b/ext/search/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php index a65b4d5364ed..4cd63717def6 100644 --- a/ext/search/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php +++ b/ext/search/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php @@ -41,7 +41,7 @@ public function _run(\Civi\Api4\Generic\Result $result) { 'icon' => 'fa-file-excel-o', 'crmPopup' => [ 'path' => "'civicrm/export/standalone'", - 'query' => "{entity: {$entity['name']}, id: ids.join(',')}", + 'query' => "{entity: '{$entity['name']}', id: ids.join(',')}", ], ]; }