1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-07 09:23:31 +02:00

Merge branch 'MDL-65641' of git://github.com/stronk7/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-05-19 10:23:36 +02:00
commit 429649efbf

@ -737,7 +737,8 @@ $mformpost->set_data(
'subject' => $post->subject,
'message' => array(
'text' => $currenttext,
'format' => empty($post->messageformat) ? editors_get_preferred_format() : $post->messageformat,
'format' => !isset($post->messageformat) || !is_numeric($post->messageformat) ?
editors_get_preferred_format() : $post->messageformat,
'itemid' => $draftideditor
),
'discussionsubscribe' => $discussionsubscribe,