From: jitendrapurohit Date: Thu, 14 Jul 2016 13:18:00 +0000 (+0530) Subject: CRM-19085 - Fix Add to Group Functionality in Reports X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=86a2ec8818f211a63a16d51d000ad56626a40878;p=civicrm-core.git CRM-19085 - Fix Add to Group Functionality in Reports --- 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'; + } } /**