Add Label field for Message Template
authorPradeep Nayak <pradpnayak@gmail.com>
Thu, 28 Sep 2023 16:58:56 +0000 (17:58 +0100)
committerPradeep Nayak <pradpnayak@gmail.com>
Thu, 28 Sep 2023 16:58:56 +0000 (17:58 +0100)
CRM/Core/DAO/MessageTemplate.php
xml/schema/Core/MessageTemplate.xml

index b39d92c08373c4c92494e93e4e625747183cb03a..fd7f5cafd221c3384c8bfc225962e0c704e6870d 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Core/MessageTemplate.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:65e3ae090a60b085f252019d3d113ceb)
+ * (GenCodeChecksum:6dc7072586d725f18dd3c984091820f0)
  */
 
 /**
@@ -23,6 +23,13 @@ class CRM_Core_DAO_MessageTemplate extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_msg_template';
 
+  /**
+   * Field to show when displaying a record.
+   *
+   * @var string
+   */
+  public static $_labelField = 'msg_title';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
index a67839a281b50f9bcdf23e5906c9133d84eee76a..ea6a8842eac0b984adf0165f563ecb3fc058eb77 100644 (file)
@@ -6,6 +6,7 @@
   <name>civicrm_msg_template</name>
   <comment>Users will need a way to save and retrieve templates with tokens for use in recurring email communication tasks</comment>
   <add>1.6</add>
+  <labelField>msg_title</labelField>
   <paths>
     <add>civicrm/admin/messageTemplates/add?action=add&amp;reset=1</add>
     <view>civicrm/admin/messageTemplates/add?action=view&amp;id=[id]&amp;reset=1</view>