Skip to content

Commit

Permalink
MDL-40091 book: revision must be incremented after editing a chapter
Browse files Browse the repository at this point in the history
  • Loading branch information
satrun77 committed Jun 14, 2013
1 parent f192883 commit 8e484df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/book/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 chapter', 'view.php?id='.$cm->id.'&chapterid='.$data->id, $data->id, $cm->id);
Expand Down

0 comments on commit 8e484df

Please sign in to comment.