CRM-16497: Fixed problematic loop related to report display options.
authorFrank J. Gómez <frank@ginkgostreet.com>
Wed, 13 May 2015 00:32:22 +0000 (20:32 -0400)
committerFrank J. Gómez <frank@ginkgostreet.com>
Wed, 13 May 2015 00:32:22 +0000 (20:32 -0400)
CRM/Report/Form.php

index c13a8a4573711599082d5334c052b50397b9a99d..f8127d4cceceaba38028dd52996693cf9e22decc 100644 (file)
@@ -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']);
         }