From 7ca59eba5790106183510e84b90088dce71c1536 Mon Sep 17 00:00:00 2001 From: Jake Dallimore Date: Thu, 14 May 2020 16:10:59 +0800 Subject: [PATCH] MDL-68847 mod_url: fix bug when using dnd to handle urls This generates a notice, which wasn't seen because the feature works asynchronously. --- mod/url/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/url/lib.php b/mod/url/lib.php index 23d11a0f4a7..815360d3ae2 100644 --- a/mod/url/lib.php +++ b/mod/url/lib.php @@ -318,6 +318,7 @@ function url_dndupload_handle($uploadinfo) { $data->introformat = FORMAT_HTML; $data->externalurl = clean_param($uploadinfo->content, PARAM_URL); $data->timemodified = time(); + $data->coursemodule = $uploadinfo->coursemodule; // Set the display options to the site defaults. $config = get_config('url');