MDL-33098 filemanager now stores the new author field correctly
authorDavid Mudrak <david@moodle.com>
Fri, 18 May 2012 13:42:30 +0000 (15:42 +0200)
committerMarina Glancy <marina@moodle.com>
Mon, 21 May 2012 03:57:56 +0000 (11:57 +0800)
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)) {