Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#4226 Add labelField metadata for mapping entity #26046

Merged
merged 1 commit into from
Apr 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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