From 33e81cf61309697dc87e720a678305ce319d7a58 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 24 Apr 2021 11:30:21 -0400 Subject: [PATCH] Replace string org.civicrm.search -> org.civicrm.search_kit Followup to renaming the extension, this fixes strings with the old name. --- ext/afform/core/managed/AfformType.mgd.php | 2 +- .../ang/crmSearchActions/crmSearchActionDelete.ctrl.js | 2 +- .../ang/crmSearchActions/crmSearchActionUpdate.ctrl.js | 2 +- .../ang/crmSearchActions/crmSearchActions.component.js | 2 +- .../ang/crmSearchActions/crmSearchBatchRunner.component.js | 2 +- .../crmSearchActions/crmSearchInput/crmSearchInput.component.js | 2 +- .../crmSearchInput/crmSearchInputVal.component.js | 2 +- ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js | 2 +- .../ang/crmSearchAdmin/crmSearchAdminDisplay.component.js | 2 +- .../ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js | 2 +- .../ang/crmSearchAdmin/crmSearchAdminLinkSelect.component.js | 2 +- .../ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js | 2 +- ext/search_kit/ang/crmSearchAdmin/crmSearchClause.component.js | 2 +- .../ang/crmSearchAdmin/crmSearchFunction.component.js | 2 +- .../crmSearchAdmin/displays/searchAdminDisplayList.component.js | 2 +- .../displays/searchAdminDisplayTable.component.js | 2 +- ext/search_kit/ang/crmSearchAdmin/searchList.controller.js | 2 +- .../ang/crmSearchDisplayList/crmSearchDisplayList.component.js | 2 +- .../crmSearchDisplayTable/crmSearchDisplayTable.component.js | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/ext/afform/core/managed/AfformType.mgd.php b/ext/afform/core/managed/AfformType.mgd.php index 17c72c6aac..baeaccb8c6 100644 --- a/ext/afform/core/managed/AfformType.mgd.php +++ b/ext/afform/core/managed/AfformType.mgd.php @@ -50,7 +50,7 @@ $mgd = [ try { $search = civicrm_api3('Extension', 'getsingle', [ - 'full_name' => "org.civicrm.search", + 'full_name' => 'org.civicrm.search_kit', ]); if ($search['status'] === 'installed') { $mgd[] = [ diff --git a/ext/search_kit/ang/crmSearchActions/crmSearchActionDelete.ctrl.js b/ext/search_kit/ang/crmSearchActions/crmSearchActionDelete.ctrl.js index 911e832eea..6e54266ab2 100644 --- a/ext/search_kit/ang/crmSearchActions/crmSearchActionDelete.ctrl.js +++ b/ext/search_kit/ang/crmSearchActions/crmSearchActionDelete.ctrl.js @@ -2,7 +2,7 @@ "use strict"; angular.module('crmSearchActions').controller('crmSearchActionDelete', function($scope, dialogService) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), model = $scope.model, ctrl = this; diff --git a/ext/search_kit/ang/crmSearchActions/crmSearchActionUpdate.ctrl.js b/ext/search_kit/ang/crmSearchActions/crmSearchActionUpdate.ctrl.js index 55f704e0b3..f322613b86 100644 --- a/ext/search_kit/ang/crmSearchActions/crmSearchActionUpdate.ctrl.js +++ b/ext/search_kit/ang/crmSearchActions/crmSearchActionUpdate.ctrl.js @@ -2,7 +2,7 @@ "use strict"; angular.module('crmSearchActions').controller('crmSearchActionUpdate', function ($scope, $timeout, crmApi4, dialogService) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), model = $scope.model, ctrl = this; diff --git a/ext/search_kit/ang/crmSearchActions/crmSearchActions.component.js b/ext/search_kit/ang/crmSearchActions/crmSearchActions.component.js index 2f3570eeaa..f278c00e3a 100644 --- a/ext/search_kit/ang/crmSearchActions/crmSearchActions.component.js +++ b/ext/search_kit/ang/crmSearchActions/crmSearchActions.component.js @@ -9,7 +9,7 @@ }, templateUrl: '~/crmSearchActions/crmSearchActions.html', controller: function($scope, crmApi4, dialogService) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this, initialized = false, unwatchIDs = $scope.$watch('$ctrl.ids.length', watchIDs); diff --git a/ext/search_kit/ang/crmSearchActions/crmSearchBatchRunner.component.js b/ext/search_kit/ang/crmSearchActions/crmSearchBatchRunner.component.js index 7be101beea..ef66e518b8 100644 --- a/ext/search_kit/ang/crmSearchActions/crmSearchBatchRunner.component.js +++ b/ext/search_kit/ang/crmSearchActions/crmSearchBatchRunner.component.js @@ -12,7 +12,7 @@ }, templateUrl: '~/crmSearchActions/crmSearchBatchRunner.html', controller: function($scope, $timeout, $interval, crmApi4) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this, currentBatch = 0, totalBatches, diff --git a/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInput.component.js b/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInput.component.js index c52c0e7092..9accd4807e 100644 --- a/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInput.component.js +++ b/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInput.component.js @@ -11,7 +11,7 @@ require: {ngModel: 'ngModel'}, templateUrl: '~/crmSearchActions/crmSearchInput/crmSearchInput.html', controller: function($scope) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.isMulti = function() { diff --git a/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInputVal.component.js b/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInputVal.component.js index 20b5152760..f38f7a45e4 100644 --- a/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInputVal.component.js +++ b/ext/search_kit/ang/crmSearchActions/crmSearchInput/crmSearchInputVal.component.js @@ -10,7 +10,7 @@ require: {ngModel: 'ngModel'}, template: '
', controller: function($scope, formatForSelect2) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.$onInit = function() { diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js index feac4a41e1..8c1934f6b4 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js @@ -7,7 +7,7 @@ }, templateUrl: '~/crmSearchAdmin/crmSearchAdmin.html', controller: function($scope, $element, $location, $timeout, crmApi4, dialogService, searchMeta, formatForSelect2) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.DEFAULT_AGGREGATE_FN = 'GROUP_CONCAT'; diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js index f5806fcf40..635af8e49c 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminDisplay.component.js @@ -33,7 +33,7 @@ return html; }, controller: function($scope, $timeout, searchMeta) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.preview = this.stale = false; diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js index 3ff0962ecb..d9145431a6 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkGroup.component.js @@ -10,7 +10,7 @@ }, templateUrl: '~/crmSearchAdmin/crmSearchAdminLinkGroup.html', controller: function ($scope, $element, $timeout, searchMeta) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.styles = CRM.crmSearchAdmin.styles; diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkSelect.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkSelect.component.js index 6d39b945c8..16f4528bb2 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkSelect.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminLinkSelect.component.js @@ -11,7 +11,7 @@ }, templateUrl: '~/crmSearchAdmin/crmSearchAdminLinkSelect.html', controller: function ($scope, $element, $timeout) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.setValue = function(val) { diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js index f03318acbe..5ee4b2dd5e 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchAdminTokenSelect.component.js @@ -10,7 +10,7 @@ }, templateUrl: '~/crmSearchAdmin/crmSearchAdminTokenSelect.html', controller: function ($scope, $element, searchMeta) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.initTokens = function() { diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchClause.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchClause.component.js index e1ea2e0746..6c0b6378dc 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchClause.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchClause.component.js @@ -13,7 +13,7 @@ }, templateUrl: '~/crmSearchAdmin/crmSearchClause.html', controller: function ($scope, $element, $timeout, searchMeta) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this, meta = {}; this.conjunctions = {AND: ts('And'), OR: ts('Or'), NOT: ts('Not')}; diff --git a/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js b/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js index 7a4af26ad3..c0049331f3 100644 --- a/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/crmSearchFunction.component.js @@ -8,7 +8,7 @@ }, templateUrl: '~/crmSearchAdmin/crmSearchFunction.html', controller: function($scope, formatForSelect2, searchMeta) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.$onInit = function() { diff --git a/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.component.js b/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.component.js index 5780a67895..ac8e3483db 100644 --- a/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayList.component.js @@ -12,7 +12,7 @@ }, templateUrl: '~/crmSearchAdmin/displays/searchAdminDisplayList.html', controller: function($scope) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.symbols = { diff --git a/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.component.js b/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.component.js index ab839cbb18..343c14cfc8 100644 --- a/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.component.js +++ b/ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.component.js @@ -12,7 +12,7 @@ }, templateUrl: '~/crmSearchAdmin/displays/searchAdminDisplayTable.html', controller: function($scope) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.$onInit = function () { diff --git a/ext/search_kit/ang/crmSearchAdmin/searchList.controller.js b/ext/search_kit/ang/crmSearchAdmin/searchList.controller.js index 42a36d904e..53e4ac32b1 100644 --- a/ext/search_kit/ang/crmSearchAdmin/searchList.controller.js +++ b/ext/search_kit/ang/crmSearchAdmin/searchList.controller.js @@ -2,7 +2,7 @@ "use strict"; angular.module('crmSearchAdmin').controller('searchList', function($scope, savedSearches, crmApi4) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = $scope.$ctrl = this; $scope.formatDate = CRM.utils.formatDate; this.savedSearches = savedSearches; diff --git a/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.component.js b/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.component.js index fa2d9ea6bb..4c18ad614f 100644 --- a/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.component.js +++ b/ext/search_kit/ang/crmSearchDisplayList/crmSearchDisplayList.component.js @@ -15,7 +15,7 @@ }, templateUrl: '~/crmSearchDisplayList/crmSearchDisplayList.html', controller: function($scope, $element, crmApi4, searchDisplayUtils) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.page = 1; diff --git a/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js b/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js index 9b4b9f18ee..5b824e944f 100644 --- a/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js +++ b/ext/search_kit/ang/crmSearchDisplayTable/crmSearchDisplayTable.component.js @@ -14,7 +14,7 @@ }, templateUrl: '~/crmSearchDisplayTable/crmSearchDisplayTable.html', controller: function($scope, $element, crmApi4, searchDisplayUtils) { - var ts = $scope.ts = CRM.ts('org.civicrm.search'), + var ts = $scope.ts = CRM.ts('org.civicrm.search_kit'), ctrl = this; this.page = 1; -- 2.25.1