Commit 29706dd3 authored by Robert Lyon's avatar Robert Lyon

Bug 1797813: Pass back folder id when updating file metadata

behatnotneeded

Change-Id: I166f8473fde7dbebfd421e9e0868d60d9469ddba
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 8690a10a)
parent af34a768
......@@ -425,6 +425,7 @@ var FileBrowser = (function($) {
var name = $(this).prop('name').match(new RegExp('^' + self.id + "_([a-z]+)\\[(\\d+)\\]$"));
if (name && name[1]) {
if (name[1] == 'edit') {
$(this).off('click');
$(this).on('click', self.edit_form);
}
else if (name[1] == 'delete') {
......
......@@ -1269,6 +1269,7 @@ function pieform_element_filebrowser_update(Pieform $form, $element, $data) {
$returndata = array(
'error' => false,
'message' => get_string('changessaved', 'artefact.file'),
'folder' => $artefact->get('parent'),
'newlist' => pieform_element_filebrowser_build_filelist($form, $element, $artefact->get('parent'), null, $user, $group, $institution),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment