Skip to content

Commit

Permalink
dev/core#140 add missing pseudoconstant for option_group_id in Custom…
Browse files Browse the repository at this point in the history
…Field.xml
  • Loading branch information
michaelmcandrew committed May 24, 2018
1 parent ab943c0 commit 5830940
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CRM/Core/DAO/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/CustomField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:dcb494bf3990ce63b66ef13ee47a2d15)
* (GenCodeChecksum:7f096c92af68ef9564675e3d708fbbe1)
*/

/**
Expand Down Expand Up @@ -594,6 +594,11 @@ public static function &fields() {
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'localizable' => 0,
'pseudoconstant' => [
'table' => 'civicrm_option_group',
'keyColumn' => 'id',
'labelColumn' => 'title',
]
],
'filter' => [
'name' => 'filter',
Expand Down
5 changes: 5 additions & 0 deletions xml/schema/Core/CustomField.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@
<title>Field Option Group</title>
<comment>For elements with options, the option group id that is used</comment>
<add>1.4</add>
<pseudoconstant>
<table>civicrm_option_group</table>
<keyColumn>id</keyColumn>
<labelColumn>title</labelColumn>
</pseudoconstant>
</field>
<field>
<name>filter</name>
Expand Down

0 comments on commit 5830940

Please sign in to comment.