From 87c4c149513b9dee5c12ae6c29262124bae9d031 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 19 Jan 2021 09:18:37 +1300 Subject: [PATCH] Add in-code notes about the workflow_name --- CRM/Core/BAO/MessageTemplate.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Core/BAO/MessageTemplate.php b/CRM/Core/BAO/MessageTemplate.php index 7239533301..1904d750ca 100644 --- a/CRM/Core/BAO/MessageTemplate.php +++ b/CRM/Core/BAO/MessageTemplate.php @@ -635,6 +635,11 @@ class CRM_Core_BAO_MessageTemplate extends CRM_Core_DAO_MessageTemplate { 'text' => $messageTemplate['msg_text'], 'html' => $messageTemplate['msg_html'], 'format' => $messageTemplate['pdf_format_id'], + // Workflow name is the field in the message templates table that denotes the + // workflow the template is used for. This is intended to eventually + // replace the non-standard option value/group implementation - see + // https://github.com/civicrm/civicrm-core/pull/17227 and the longer + // discussion on https://github.com/civicrm/civicrm-core/pull/17180 'workflow_name' => $workflowName, // Note messageTemplateID is the id but when present we also know it was specifically requested. 'messageTemplateID' => $messageTemplateID, -- 2.25.1