From 5f0249894d6ffd043debfffef8306eda2e91cd34 Mon Sep 17 00:00:00 2001 From: daraelmin Date: Sat, 13 Mar 2021 19:11:21 +0100 Subject: [PATCH] Add property mail_exclusion Unused for the moment --- htdocs/adherents/class/adherent_type.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php index 40e3e97deb4..1513ddb01f0 100644 --- a/htdocs/adherents/class/adherent_type.class.php +++ b/htdocs/adherents/class/adherent_type.class.php @@ -103,6 +103,9 @@ class AdherentType extends CommonObject /** @var string Email sent after resiliation */ public $mail_resiliate = ''; + /** @var string Email sent after exclusion */ + public $mail_exclusion = ''; + /** @var array Array of members */ public $members = array(); @@ -817,4 +820,19 @@ class AdherentType extends CommonObject return ''; } + + /** + * getMailOnExclusion + * + * @return string Return mail model content of type or empty + */ + public function getMailOnExclusion() + { + // NOTE mail_exclusion not defined so never used + if (!empty($this->mail_exclusion) && trim(dol_htmlentitiesbr_decode($this->mail_exclusion))) { // Property not yet defined + return $this->mail_exclusion; + } + + return ''; + } }