Commit 48059e78 authored by metzlerd's avatar metzlerd
Browse files

Fix submit handler for parameters to not inlcude values as keys when

using arrays. 
parent d9f50038
......@@ -673,9 +673,10 @@ function forena_parameter_form_submit($form, &$form_state) {
unset($values['params']['submit']);
if (isset($values['params'])) foreach ($values['params'] as $key => $value) {
if (is_array($value)) {
$values['params'][$key] = array();
foreach ($value as $k => $val) {
if (!$val) {
unset($values['params'][$key][$k]);
if ($val) {
$values['params'][$key][] = $val;
}
}
}
......
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