Commit a9e42fb8 authored by Nigel McNie's avatar Nigel McNie
Browse files

Use the default value we just calculated for the block in our calculations for the new block value

parent a64fe46c
......@@ -82,7 +82,7 @@ function pieform_element_artefactchooser_get_value(Pieform $form, $element) {
// 1) Start with what's currently available
// 2) Remove everything on the page that was active when submitted
// 3) Add in everything that was selected
$value = array_merge(array_diff($element['defaultvalue'], $onpage), $selected);
$value = array_merge(array_diff($default, $onpage), $selected);
return array_map('intval', $value);
}
......
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