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

Merge "Bug 1826974: Deleting a non-instiutional tag from file produces a warning"

parents 43796998 9cfe3bb9
......@@ -1280,7 +1280,9 @@ function pieform_element_filebrowser_update(Pieform $form, $element, $data) {
$updatetags = $oldtags != $newtags;
if ($updatetags) {
require_once(get_config('docroot') . 'lib/form/elements/tags.php');
$newtags = array_map('remove_prefix', $newtags);
if (!empty($newtags)) {
$newtags = array_map('remove_prefix', $newtags);
}
$artefact->set('tags', $newtags);
}
......
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