mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-40386: Fix for updating timemodified field in book_chapters
This commit is contained in:
parent
0ea1fbbb55
commit
6b693ce8d3
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user