Commit b08b5ef1 authored by metzlerd's avatar metzlerd
Browse files

Fix Collapse so that it doesn't collapse on refresh.

parent f3795369
......@@ -464,6 +464,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
$desc = $form_state['storage']['desc'];
$report_name = @$desc['name'];
$collapse = isset($attributes['collapse']) ? $attributes['collapse'] : FALSE;
if (isset($form_state['values'])) {
$collapse=FALSE;
$parms = array_merge($parms, $form_state['values']['params']);
......@@ -476,7 +477,6 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
drupal_alter('forena_parameters', $report_name, $parms);
Frx::Data()->push($parms, 'parm');
}
$collapse = isset($attributes['collapse']) ? $attributes['collapse'] : FALSE;
$template = @$attributes['template'];
$collapsible = isset($attributes['collapsible']) ? $attributes['collapsible'] : TRUE;
$title = isset($attributes['title']) ? $attributes['title'] : t('Parameters');
......
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