From 52b41f2f1ad2410ed04c77d6a7f48707ae45e094 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Tue, 12 May 2015 20:32:22 -0400 Subject: [PATCH] CRM-16497: Fixed problematic loop related to report display options. --- CRM/Report/Form.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index c13a8a4573..f8127d4cce 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -1205,8 +1205,9 @@ class CRM_Report_Form extends CRM_Core_Form { // FIXME: For now lets build all elements as checkboxes. // Once we clear with the format we can build elements based on type - $options = array(); foreach ($this->_options as $fieldName => $field) { + $options = array(); + if ($field['type'] == 'select') { $this->addElement('select', "{$fieldName}", $field['title'], $field['options']); } -- 2.25.1