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

This commit is contained in:
Marina Glancy
2012-07-03 10:24:43 +08:00
committed by Dan Poltawski
parent 10ff22d6f6
commit f5cd2c6ef1
+1
View File
@@ -230,6 +230,7 @@ switch ($action) {
$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()) {