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
+2 -1
View File
@@ -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,