From f73a6dff32c25db6baecd0b5bcede5791afd9ade Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 9 Mar 2020 22:57:46 +0000 Subject: [PATCH] pseudoconstant for bounce type --- CRM/Mailing/DAO/BouncePattern.php | 7 ++++++- xml/schema/Mailing/BouncePattern.xml | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/DAO/BouncePattern.php b/CRM/Mailing/DAO/BouncePattern.php index c90182607a..5bb9f028cf 100644 --- a/CRM/Mailing/DAO/BouncePattern.php +++ b/CRM/Mailing/DAO/BouncePattern.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Mailing/BouncePattern.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:5b77be40f02d6350d3a973ae6e090883) + * (GenCodeChecksum:c72ed4774d00758d25e6a167f4215906) */ /** @@ -101,6 +101,11 @@ class CRM_Mailing_DAO_BouncePattern extends CRM_Core_DAO { 'bao' => 'CRM_Mailing_BAO_BouncePattern', 'localizable' => 0, 'FKClassName' => 'CRM_Mailing_DAO_BounceType', + 'pseudoconstant' => [ + 'table' => 'civicrm_mailing_bounce_type', + 'keyColumn' => 'id', + 'labelColumn' => 'name', + ], ], 'pattern' => [ 'name' => 'pattern', diff --git a/xml/schema/Mailing/BouncePattern.xml b/xml/schema/Mailing/BouncePattern.xml index 3715febd2d..357572c272 100644 --- a/xml/schema/Mailing/BouncePattern.xml +++ b/xml/schema/Mailing/BouncePattern.xml @@ -21,6 +21,11 @@ int unsigned true Type of bounce + + civicrm_mailing_bounce_type
+ id + name +
bounce_type_id -- 2.25.1