Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-40091 book: revision must be incremented after editing a chapter

  • Loading branch information...
commit dc7d68880a7204682b0516d56340e52a576eb7f8 1 parent eabe1d3
@satrun77 satrun77 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/book/edit.php
View
1  mod/book/edit.php
@@ -72,6 +72,7 @@
// 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', 'view.php?id='.$cm->id.'&chapterid='.$data->id, $book->id, $cm->id);
Please sign in to comment.
Something went wrong with that request. Please try again.