From b7ea566f7b0f174219fe2c8bf283516f83367863 Mon Sep 17 00:00:00 2001 From: Dongsheng Cai Date: Mon, 20 Jul 2015 15:42:21 +1000 Subject: [PATCH] EQ-2269 Add filename to module db record --- lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib.php b/lib.php index 1451fe5..254b7c6 100644 --- a/lib.php +++ b/lib.php @@ -442,6 +442,7 @@ function equella_dndupload_handle($uploadinfo) { $eqresource->intro = $info->description; $eqresource->introformat = FORMAT_HTML; $eqresource->mimetype = $mimetype; + $eqresource->filename = $file->get_filename(); $item = array_pop($info->attachments); $eqresource->attachmentuuid = $item->uuid; $eqresource->url = $item->links->view;