Print report or export report if user have access report permission
authorPradeep Nayak <pradpnayak@gmail.com>
Sat, 28 May 2022 09:53:18 +0000 (10:53 +0100)
committerPradeep Nayak <pradpnayak@gmail.com>
Sat, 28 May 2022 09:53:18 +0000 (10:53 +0100)
CRM/Report/Form.php

index 3ce289b632ece55c19e3bc5faf981c1820036319..a06ce0ca74644a9227bfe1cd547ce59375a2b7f1 100644 (file)
@@ -3014,7 +3014,9 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
     // fields array is missing because form building etc is skipped
     // in dashboard mode for report
     //@todo - this could be done in the dashboard no we have a setter
-    if (empty($this->_params['fields']) && !$this->_noFields) {
+    if (empty($this->_params['fields']) && !$this->_noFields
+      && empty($this->_params['task'])
+    ) {
       $this->setParams($this->_formValues);
     }