From 21599d8cfcb2ec6267b653d2e3412bad98762943 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 2 Sep 2008 02:59:01 +0000 Subject: [PATCH] MDL-15348 Make the filepicker component return the itemid of the new file (in user_draft area) --- lib/form/filepicker.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/form/filepicker.php b/lib/form/filepicker.php index b577a21f93..f57586fe52 100644 --- a/lib/form/filepicker.php +++ b/lib/form/filepicker.php @@ -84,4 +84,7 @@ EOD; return $str; } } + function exportValue(&$submitValues, $assoc = false) { + return array($this->_attributes['name'] => $submitValues[$this->_attributes['name']]); + } } -- 2.39.5