Skip to content

Commit

Permalink
Merge pull request #29999 from michaelmcandrew/dev/core#5154
Browse files Browse the repository at this point in the history
no wysiwyg editor for system worklow messages (dev/core#5154)
  • Loading branch information
demeritcowboy authored Apr 18, 2024
2 parents 9b0ac10 + fc198f3 commit 799d421
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CRM/Admin/Form/MessageTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ public function buildQuickForm() {

$this->assign('tokens', CRM_Utils_Token::formatTokensForDisplay($tokens));

// if not a system message use a wysiwyg editor, CRM-5971
if ($this->_id &&
CRM_Core_DAO::getFieldValue('CRM_Core_DAO_MessageTemplate',
$this->_id,
'workflow_id'
// if not a system message use a wysiwyg editor, CRM-5971 and dev/core#5154
if (
$this->_id && (
CRM_Core_DAO::getFieldValue('CRM_Core_DAO_MessageTemplate', $this->_id, 'workflow_id') ||
CRM_Core_DAO::getFieldValue('CRM_Core_DAO_MessageTemplate', $this->_id, 'workflow_name')
)
) {
$this->add('textarea', 'msg_html', ts('HTML Message'),
Expand Down

0 comments on commit 799d421

Please sign in to comment.