Permalink
Browse files

MDL-40386: Fix for updating timemodified field in book_chapters

  • Loading branch information...
1 parent 4eff6ed commit bb6cacb9134dfa6e1da276f4cab706e557bb56fd @prateeksachan prateeksachan committed with damyon 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 bb6cacb

Please sign in to comment.