Main edit interface functinonal except save and execution order

This commit is contained in:
Rich Lott / Artful Robot 2025-02-20 19:38:42 +00:00
parent 4978eeb828
commit b0983603e5
6 changed files with 346 additions and 72 deletions

View file

@ -0,0 +1,83 @@
<?php
use CRM_Contactcats_ExtensionUtil as E;
return [
[
'name' => 'CustomGroup_Category_changes',
'entity' => 'CustomGroup',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'Category_changes',
'title' => E::ts('Category changes'),
'extends' => 'Activity',
'extends_entity_column_value:name' => ['changed_contact_category'],
'style' => 'Inline',
'help_pre' => E::ts(''),
'help_post' => E::ts(''),
'weight' => 18,
'collapse_adv_display' => TRUE,
'created_date' => '2025-02-20 13:59:06',
'is_public' => FALSE,
'icon' => '',
],
'match' => ['name'],
],
],
[
'name' => 'CustomGroup_Category_changes_CustomField_Previous_Category',
'entity' => 'CustomField',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Category_changes',
'name' => 'Previous_Category',
'label' => E::ts('Previous Category'),
'data_type' => 'EntityReference',
'html_type' => 'Autocomplete-Select',
'is_searchable' => TRUE,
'is_view' => TRUE,
'text_length' => 255,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'previous_category_117',
'fk_entity' => 'ContactCategoryDefinition',
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Category_changes_CustomField_New_Category',
'entity' => 'CustomField',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Category_changes',
'name' => 'New_Category',
'label' => E::ts('New Category'),
'data_type' => 'EntityReference',
'html_type' => 'Autocomplete-Select',
'is_searchable' => TRUE,
'is_view' => TRUE,
'text_length' => 255,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'new_category_118',
'fk_entity' => 'ContactCategoryDefinition',
],
'match' => [
'name',
'custom_group_id',
],
],
],
];

View file

@ -3,14 +3,14 @@ use CRM_Contactcats_ExtensionUtil as E;
return [
[
'name' => 'OptionValue_Changed_Contact_Category',
'name' => 'OptionValue_changed_contact_category',
'entity' => 'OptionValue',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'option_group_id:name' => 'activity_type',
'option_group_id.name' => 'activity_type',
'label' => E::ts('Changed Contact Category'),
'name' => 'changed_contact_category',
'icon' => 'fa-tags',

View file

@ -1,51 +0,0 @@
<?php
use CRM_Contactcats_ExtensionUtil as E;
return [
[
'name' => 'OptionGroup_contact_categories',
'entity' => 'OptionGroup',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'contact_categories',
'title' => E::ts('Contact Categories'),
'data_type' => 'Integer',
'is_reserved' => FALSE,
'is_active' => TRUE,
'option_value_fields' => [
'name',
'label',
'description',
'weight',
],
],
'match' => [
'name',
],
],
],
[
'name' => 'OptionGroup_contact_categories_OptionValue_Default',
'entity' => 'OptionValue',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'option_group_id.name' => 'contact_categories',
'label' => E::ts('Default'),
'is_active' => TRUE,
'value' => '0',
'name' => 'default',
],
'match' => [
'option_group_id',
'name',
'value',
],
],
],
];