Merge branch 'MDL-40386' of https://github.com/prateeksachan/moodle
authorDamyon Wiese <damyon@moodle.com>
Tue, 9 Jul 2013 04:34:31 +0000 (12:34 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 9 Jul 2013 04:34:31 +0000 (12:34 +0800)
mod/book/edit.php

index ea21820..547a9d1 100644 (file)
@@ -70,6 +70,7 @@ if ($mform->is_cancelled()) {
 
     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));