Skip to content

Commit 242d1e5

Browse files
committed
Fix issue with mobile app support - student save action
1 parent 7b3b64e commit 242d1e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/external/set_text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function execute(int $journalid, string $text, $format, int $itemi
112112
['journalid' => $journalid, 'text' => $text, 'format' => $format, 'itemid' => $itemid]
113113
);
114114

115-
if (!$cm = get_coursemodule_from_id('journal', $params['journalid'])) {
115+
if (!$cm = get_coursemodule_from_instance('journal', $params['journalid'])) {
116116
throw new invalid_parameter_exception(get_string('incorrectcmid', 'journal'));
117117
}
118118

0 commit comments

Comments
 (0)