Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 96f953cbe2497280ce2a2a078b855e659cf4824b 1 parent 832626d
Petr Skoda skodak authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/folder/edit.php
1  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)));
}
Please sign in to comment.
Something went wrong with that request. Please try again.