Skip to content

Commit

Permalink
CustomGroup - Add pseudoconstant for extends column
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Dec 20, 2021
1 parent 777cb55 commit 422504b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CRM/Core/DAO/CustomGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/CustomGroup.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:e06fe97917806daa0d337c43968ccf2b)
* (GenCodeChecksum:27a1b80ba9d2696e97dd1df33468caff)
*/

/**
Expand Down Expand Up @@ -291,6 +291,9 @@ public static function &fields() {
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'localizable' => 0,
'pseudoconstant' => [
'callback' => 'CRM_Core_SelectValues::customGroupExtends',
],
'add' => '1.1',
],
'extends_entity_column_id' => [
Expand Down
3 changes: 3 additions & 0 deletions xml/schema/Core/CustomGroup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@
<default>'Contact'</default>
<comment>Type of object this group extends (can add other options later e.g. contact_address, etc.).</comment>
<add>1.1</add>
<pseudoconstant>
<callback>CRM_Core_SelectValues::customGroupExtends</callback>
</pseudoconstant>
</field>
<field>
<name>extends_entity_column_id</name>
Expand Down

0 comments on commit 422504b

Please sign in to comment.