Commit c1c5e0e4 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Redirect to /artefact/file/ when click Cancel (bug #1052429)"

parents e95ea062 5031431b
......@@ -357,6 +357,14 @@ function pieform_element_filebrowser_get_value(Pieform $form, $element) {
$prefix = $form->get_name() . '_' . $element['name'];
// Cancel edit a file artefact
// This value only available when the filebrowser was submitted by non-js web browser
$canceledit = param_variable($prefix . '_canceledit', null);
if (!empty($canceledit)) {
// The value of this element is the list of selected artefact ids
$selected = param_variable($prefix . '_selected', null);
if (is_array($selected)) {
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