MDL-30072 - Notes, Webservices - adding Webservices for notes
This commit is contained in:
+1
-3
@@ -70,9 +70,7 @@ if ($noteform->is_cancelled()) {
|
||||
|
||||
/// if data was submitted and validated, then save it to database
|
||||
if ($note = $noteform->get_data()){
|
||||
if (note_save($note)) {
|
||||
add_to_log($note->courseid, 'notes', 'update', 'index.php?course='.$note->courseid.'&user='.$note->userid . '#note-' . $note->id, 'update note');
|
||||
}
|
||||
note_save($note);
|
||||
// redirect to notes list that contains this note
|
||||
redirect($CFG->wwwroot . '/notes/index.php?course=' . $note->courseid . '&user=' . $note->userid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user