Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33837 picking file from server files should not copy 'Main file' …

…property
  • Loading branch information...
commit f5cd2c6ef137de088c67d4c5216325a3ea9dd745 1 parent 10ff22d
@marinaglancy marinaglancy authored danpoltawski committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  repository/repository_ajax.php
View
1  repository/repository_ajax.php
@@ -230,6 +230,7 @@
$record->timecreated = $now;
$record->timemodified = $now;
$record->userid = $USER->id;
+ $record->sortorder = 0;
// If file is already a reference, set $source = file source, $repo = file repository
if ($repo->has_moodle_files()) {
Please sign in to comment.
Something went wrong with that request. Please try again.