SearchKit - Fix broken export action
authorColeman Watts <coleman@civicrm.org>
Thu, 8 Apr 2021 15:12:25 +0000 (11:12 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 8 Apr 2021 15:12:25 +0000 (11:12 -0400)
ext/search/Civi/Api4/Action/SearchDisplay/GetSearchTasks.php

index a65b4d5364edbb85af4c545bb33a67a055c20138..4cd63717def6c14d0243e4a71a271bfeb81ee440 100644 (file)
@@ -41,7 +41,7 @@ class GetSearchTasks extends \Civi\Api4\Generic\AbstractAction {
         'icon' => 'fa-file-excel-o',
         'crmPopup' => [
           'path' => "'civicrm/export/standalone'",
-          'query' => "{entity: {$entity['name']}, id: ids.join(',')}",
+          'query' => "{entity: '{$entity['name']}', id: ids.join(',')}",
         ],
       ];
     }