From 86a2ec8818f211a63a16d51d000ad56626a40878 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Thu, 14 Jul 2016 18:48:00 +0530 Subject: [PATCH] CRM-19085 - Fix Add to Group Functionality in Reports --- CRM/Report/Form.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index c101e38c67..82d7c1b406 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -4602,6 +4602,7 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a * is that we might print a bar chart as a pdf. */ protected function setOutputMode() { + $buttonName = $this->controller->getButtonName(); $this->_outputMode = str_replace('report_instance.', '', CRM_Utils_Request::retrieve( 'output', 'String', @@ -4612,6 +4613,9 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a if (isset($this->_params['task'])) { unset($this->_params['task']); } + if ($this->_groupButtonName == $buttonName) { + $this->_outputMode = 'group'; + } } /** -- 2.25.1