Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-40386: Fix for updating timemodified field in book_chapters

  • Loading branch information...
commit bb6cacb9134dfa6e1da276f4cab706e557bb56fd 1 parent 4eff6ed
Prateek Sachan prateeksachan authored damyon committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/book/edit.php
1  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));
Please sign in to comment.
Something went wrong with that request. Please try again.