Skip to content

Commit

Permalink
MDL-32079 folder revision must be incremented after any file change
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 16, 2012
1 parent 3c4111e commit 16b879e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/folder/edit.php
Expand Up @@ -58,6 +58,7 @@


} else if ($formdata = $mform->get_data()) { } else if ($formdata = $mform->get_data()) {
$formdata = file_postupdate_standard_filemanager($formdata, 'files', $options, $context, 'mod_folder', 'content', 0); $formdata = file_postupdate_standard_filemanager($formdata, 'files', $options, $context, 'mod_folder', 'content', 0);
$DB->set_field('folder', 'revision', $folder->revision+1, array('id'=>$folder->id));
redirect(new moodle_url('/mod/folder/view.php', array('id'=>$cm->id))); redirect(new moodle_url('/mod/folder/view.php', array('id'=>$cm->id)));
} }


Expand Down

0 comments on commit 16b879e

Please sign in to comment.