Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-37411 Note Module: additional patch to fixed undefined property f…

…or stable branches
  • Loading branch information...
commit a28da5d9b8221e53d3a0815fd0a1dc27bd48816b 1 parent e13f286
rwijaya rwijaya authored nebgor committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  notes/lib.php
3  notes/lib.php
View
@@ -100,10 +100,11 @@ function note_save(&$note) {
// insert new note
$note->created = $note->lastmodified;
$id = $DB->insert_record('post', $note);
- $note = $DB->get_record('post', array('id'=>$id));
+ $note = note_load($id);
} else {
// update old note
$DB->update_record('post', $note);
+ $note = note_load($note->id);
}
unset($note->module);
return true;
Please sign in to comment.
Something went wrong with that request. Please try again.