mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-06-25 17:58:05 +02:00
Fix search » contacts by categories
This commit is contained in:
parent
63b930101e
commit
a67bd1cbbd
4 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
<div af-fieldset="">
|
<div af-fieldset="">
|
||||||
<af-field name="Contact_ContactCategory_id_01.category_definition_id" defn="{input_attrs: {multiple: true}, label: 'Category'}" />
|
<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>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
filters: '<',
|
filters: '<',
|
||||||
totalCount: '=?'
|
totalCount: '=?'
|
||||||
},
|
},
|
||||||
// controller: function($scope, $timeout, crmApi4, crmStatus, $document) {
|
|
||||||
controller: function($scope, $element, crmApi4, searchDisplayBaseTrait, searchDisplayTasksTrait) {
|
controller: function($scope, $element, crmApi4, searchDisplayBaseTrait, searchDisplayTasksTrait) {
|
||||||
console.log('crmSearchDisplayContactCat controller called');
|
console.log('crmSearchDisplayContactCat controller called');
|
||||||
// Mix in required traits
|
// Mix in required traits
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
use CRM_Contactcats_ExtensionUtil as E;
|
use CRM_Contactcats_ExtensionUtil as E;
|
||||||
|
|
||||||
|
// This defines a search display type... I think.
|
||||||
return [
|
return [
|
||||||
[
|
[
|
||||||
'name' => 'OptionValue_crm_search_display_contact_cat',
|
'name' => 'OptionValue_crm_search_display_contact_cat',
|
||||||
|
|
|
@ -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',
|
'entity' => 'SearchDisplay',
|
||||||
'cleanup' => 'unused',
|
'cleanup' => 'unused',
|
||||||
'update' => 'unmodified',
|
'update' => 'unmodified',
|
||||||
|
@ -61,7 +61,7 @@ return [
|
||||||
'values' => [
|
'values' => [
|
||||||
'name' => 'Contacts_by_category',
|
'name' => 'Contacts_by_category',
|
||||||
'label' => E::ts('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',
|
'type' => 'table',
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'description' => E::ts(NULL),
|
'description' => E::ts(NULL),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue