Fix search » contacts by categories

This commit is contained in:
Rich Lott / Artful Robot 2025-04-02 10:57:44 +01:00
parent 63b930101e
commit a67bd1cbbd
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
<div af-fieldset="">
<af-field name="Contact_ContactCategory_id_01.category_definition_id" defn="{input_attrs: {multiple: true}, label: 'Category'}" />
<crm-search-display-table search-name="Contacts_by_category_uxxr" display-name="Contacts_by_category"></crm-search-display-table>
<crm-search-display-table search-name="Contacts_by_category" display-name="Contacts_by_category"></crm-search-display-table>
</div>

View file

@ -17,7 +17,6 @@
filters: '<',
totalCount: '=?'
},
// controller: function($scope, $timeout, crmApi4, crmStatus, $document) {
controller: function($scope, $element, crmApi4, searchDisplayBaseTrait, searchDisplayTasksTrait) {
console.log('crmSearchDisplayContactCat controller called');
// Mix in required traits

View file

@ -1,6 +1,7 @@
<?php
use CRM_Contactcats_ExtensionUtil as E;
// This defines a search display type... I think.
return [
[
'name' => 'OptionValue_crm_search_display_contact_cat',

View file

@ -52,7 +52,7 @@ return [
],
],
[
'name' => 'SavedSearch_Contacts_by_category_uxxr_SearchDisplay_Contacts_by_category',
'name' => 'SavedSearch_Contacts_by_category_SearchDisplay_Contacts_by_category',
'entity' => 'SearchDisplay',
'cleanup' => 'unused',
'update' => 'unmodified',
@ -61,7 +61,7 @@ return [
'values' => [
'name' => 'Contacts_by_category',
'label' => E::ts('Contacts by category'),
'saved_search_id.name' => 'Contacts_by_category_uxxr',
'saved_search_id.name' => 'Contacts_by_category',
'type' => 'table',
'settings' => [
'description' => E::ts(NULL),