mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-40091 book: revision must be incremented after editing a chapter
This commit is contained in:
parent
f192883305
commit
8e484df3a6
@ -72,6 +72,7 @@ if ($mform->is_cancelled()) {
|
||||
// store the files
|
||||
$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));
|
||||
|
||||
add_to_log($course->id, 'course', 'update mod', '../mod/book/view.php?id='.$cm->id, 'book '.$book->id);
|
||||
add_to_log($course->id, 'book', 'update chapter', 'view.php?id='.$cm->id.'&chapterid='.$data->id, $data->id, $cm->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user