Skip to content

Commit

Permalink
Merge pull request #26046 from colemanw/mappingLabel
Browse files Browse the repository at this point in the history
dev/core#4226 Add labelField metadata for mapping entity
  • Loading branch information
colemanw authored Apr 11, 2023
2 parents a1c4ac7 + 397532f commit 2d28c12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CRM/Core/DAO/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/Mapping.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:b25f314a77515ccdcff0c3bbf8e07fd2)
* (GenCodeChecksum:89c538397697d0633134470f9e8ac880)
*/

/**
Expand All @@ -23,6 +23,13 @@ class CRM_Core_DAO_Mapping extends CRM_Core_DAO {
*/
public static $_tableName = 'civicrm_mapping';

/**
* Field to show when displaying a record.
*
* @var string
*/
public static $_labelField = 'name';

/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
Expand Down
1 change: 1 addition & 0 deletions xml/schema/Core/Mapping.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<class>Mapping</class>
<name>civicrm_mapping</name>
<comment>Store field mappings in import or export for reuse</comment>
<labelField>name</labelField>
<add>1.2</add>
<field>
<name>id</name>
Expand Down

0 comments on commit 2d28c12

Please sign in to comment.