From be354713b7ef2528b0776a5bd923f14ec7ee86bb Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 24 May 2023 11:32:08 +1200 Subject: [PATCH] Add import listing for admins --- .../Managed/UserJobSearches.mgd.php | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/ext/civiimport/Managed/UserJobSearches.mgd.php b/ext/civiimport/Managed/UserJobSearches.mgd.php index 5acf8248f9..8a9551b236 100644 --- a/ext/civiimport/Managed/UserJobSearches.mgd.php +++ b/ext/civiimport/Managed/UserJobSearches.mgd.php @@ -164,4 +164,51 @@ return [ ], ], ], + [ + 'name' => 'SavedSearch_Imports', + 'entity' => 'SavedSearch', + 'cleanup' => 'always', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'name' => 'Imports', + 'label' => 'Imports', + 'form_values' => NULL, + 'mapping_id' => NULL, + 'search_custom_id' => NULL, + 'api_entity' => 'UserJob', + 'api_params' => [ + 'version' => 4, + 'select' => [ + 'id', + 'created_id.display_name', + 'created_date', + 'job_type:label', + 'start_date', + 'end_date', + 'status_id:label', + ], + 'orderBy' => [], + 'where' => [ + [ + 'is_template', + '=', + FALSE, + ], + [ + 'is_current', + '=', + TRUE, + ], + ], + 'groupBy' => [], + 'join' => [], + 'having' => [], + ], + 'expires_date' => NULL, + 'description' => NULL, + ], + ], + ], ]; -- 2.25.1