Skip to content

Commit

Permalink
restore and backup preserve Question ID in zipfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nexterday committed Aug 8, 2016
1 parent 302314d commit 123ff80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ public function files_read_only(question_attempt $qa, question_display_options $
$skipfile = 'All_Files' . $student_name_qid_str . '.zip';
$infocreated = 0;
foreach ($files as $file) {
if (strtolower($file->get_filename()) == strtolower($skipfile)) {
// if (strtolower($file->get_filename()) == strtolower($skipfile)) {
if (strpos($file->get_filename(), 'All_Files_') !== false) { // Avoid Restore duplicates
continue;
}
$output[] = html_writer::tag('p',
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->component = 'qtype_fileresponse';
$plugin->version = 2016082902;
$plugin->version = 2016082903;

$plugin->requires = 2015050500;

Expand Down

0 comments on commit 123ff80

Please sign in to comment.