Permalink
Browse files

MDL-40386: Fix for updating timemodified field in book_chapters

  • Loading branch information...
1 parent 0ea1fbb commit 6b693ce8d31d47099e4bd98e6f2c2cc09e84a58e @prateeksachan prateeksachan committed Jul 1, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/book/edit.php
View
@@ -70,6 +70,7 @@
if ($data->id) {
// store the files
+ $data->timemodified = time();
$data = file_postupdate_standard_editor($data, 'content', $options, $context, 'mod_book', 'chapter', $data->id);
$DB->update_record('book_chapters', $data);
$DB->set_field('book', 'revision', $book->revision+1, array('id'=>$book->id));

0 comments on commit 6b693ce

Please sign in to comment.