Skip to content

Commit 8845b88

Browse files
stonebuzzbtry
authored andcommitted
fix(TargetChange): use RichText instead of plaintext
1 parent 03e6281 commit 8845b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/targetchange.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,11 @@ public function save(PluginFormcreatorFormAnswer $formanswer): ?CommonDBTM {
664664
$data[$changeField] = $this->prepareTemplate(
665665
Sanitizer::unsanitize(__($this->fields[$changeField], $domain)) ?? '',
666666
$formanswer,
667-
$changeField == 'content' // only content supports rich text
667+
true // all *content supports rich text
668668
);
669669
$data[$changeField] = $data[$changeField] ?? '';
670670

671-
$data[$changeField] = $formanswer->parseTags($data[$changeField], $this, $changeField == 'content');
671+
$data[$changeField] = $formanswer->parseTags($data[$changeField], $this, true); // all *content supports rich text
672672
}
673673

674674
$data['_users_id_recipient'] = $formanswer->fields['requester_id'];

0 commit comments

Comments
 (0)