MDL-30072 - Notes, Webservices - adding Webservices for notes

This commit is contained in:
Jason Fowler
2013-02-22 13:58:11 +08:00
parent f29e62cb6c
commit 34348b2b43
9 changed files with 480 additions and 45 deletions
+1 -3
View File
@@ -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);
}