Permalink
Browse files

MDL-32079 folder revision must be incremented after any file change

  • Loading branch information...
1 parent 3c4111e commit 16b879e79f70ac1de75876966e00dd21a9d01be6 @skodak skodak committed Mar 16, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/folder/edit.php
View
@@ -58,6 +58,7 @@
} else if ($formdata = $mform->get_data()) {
$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)));
}

0 comments on commit 16b879e

Please sign in to comment.