MDL-33098 filemanager now stores the new author field correctly
[moodle.git] / repository / draftfiles_ajax.php
index 246f66c..3857a0d 100644 (file)
@@ -154,7 +154,7 @@ switch ($action) {
                 $file->set_license($updatedata['license']);
             }
             if (array_key_exists('author', $updatedata)) {
-                $file->set_license($updatedata['author']);
+                $file->set_author($updatedata['author']);
             }
             $changes = array_diff(array_keys($updatedata), array('filepath'));
             if (!empty($changes)) {