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

Metadata - Add label field for SavedSearch #24162

Merged
merged 1 commit into from
Aug 9, 2022
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/Contact/DAO/SavedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Contact/SavedSearch.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:1b324e028960b1c8fd94ecdc973a6fdc)
* (GenCodeChecksum:463e44ca73e5b034502fcc1605f5a9c2)
*/

/**
Expand All @@ -30,6 +30,13 @@ class CRM_Contact_DAO_SavedSearch extends CRM_Core_DAO {
*/
public static $_icon = 'fa-search-plus';

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

/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
Expand Down
1 change: 1 addition & 0 deletions xml/schema/Contact/SavedSearch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<name>civicrm_saved_search</name>
<comment>Users can save their complex SQL queries and use them later.</comment>
<icon>fa-search-plus</icon>
<labelField>label</labelField>
<add>1.1</add>
<field>
<name>id</name>
Expand Down