Commit 6a6e4caf authored by Richard Mansfield's avatar Richard Mansfield
Browse files

'Select one' filebrowser option when js is off

parent 097fc02c
......@@ -229,6 +229,9 @@ function pieform_element_filebrowser_get_value(Pieform $form, $element) {
if (isset($element['selectcallback']) && is_callable($element['selectcallback'])) {
$element['selectcallback']($add);
}
else if ($element['config']['selectone']) {
$result['selected'] = array($add);
}
else {
$result['selected'] = is_array($selected) ? $selected : array();
$result['selected'][] = $add;
......
Supports Markdown
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