MDL-74188 notes: consistent formatting of text content.

Each method of adding notes, either via UI or external service (via
course participant actions), defined the format of the content
different from one another. Neither of those formats were correct.
This commit is contained in:
Paul Holden
2024-08-16 10:19:54 +01:00
parent 6cd55074c7
commit 6c8631bb53
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ function note_save(&$note) {
$note->lastmodified = time();
$note->usermodified = $USER->id;
if (empty($note->format)) {
$note->format = FORMAT_PLAIN;
$note->format = FORMAT_MOODLE;
}
if (empty($note->publishstate)) {
$note->publishstate = NOTES_STATE_PUBLIC;