Answers.Body: <p>This seems to be a bug in CiviCRM. Below patch will allow anonymous user to Print report or Print PDF.</p>
  
  <pre><code>diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php
  index 75a614c836..9acd75c584 100644
  --- a/CRM/Report/Form.php
  +++ b/CRM/Report/Form.php
  @@ -2580,7 +2571,7 @@ WHERE cg.extends IN ('" . implode("','", $this-&gt;_customGroupExtends) . "') AND
       if (empty($this-&gt;_params) &amp;&amp;
         $this-&gt;_force
       ) {
  -      $this-&gt;setParams($this-&gt;_formValues);
  +      $this-&gt;setParams($this-&gt;_submitValues);
       }
  
       // hack to fix params when submitted from dashboard, CRM-8532
  @@ -2588,7 +2579,7 @@ WHERE cg.extends IN ('" . implode("','", $this-&gt;_customGroupExtends) . "') AND
       // in dashboard mode for report
       //@todo - this could be done in the dashboard no we have a setter
       if (empty($this-&gt;_params['fields']) &amp;&amp; !$this-&gt;_noFields) {
  -      $this-&gt;setParams($this-&gt;_formValues);
  +      $this-&gt;setParams($this-&gt;_submitValues);
       }
  </code></pre>
  
  <p>Not sure what is the difference between formvalues and submitvalues even though params are considered from submit values for processing.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-17T03:11:29.040Z
Answers.Text: Can you mark it as answered and close the question?
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-17T07:04:49.630Z
Answers.Text: Yes works, but not so good !
  Many new troubles now :
  - get a "showBlocks array item not in .tpl = optionField_6" alarm when saving a report;
  - impossible to modify a report criteria;
  - when having two reports open in two browser tabs, if deleting one with the "delete" action, we get also the other one to be deleted with the "copy" action.
  Seems that old parameters are used, not the new actual ones.
Answers.UserDisplayName: Jean-Pierre PECUCHET
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-15T14:52:16.050Z
Answers.LastActivityDate: 2018-01-15T14:52:16.050Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I want a category of users can access some reports, view the results on the screen and print them to PDF.
  And to prevent any modification of the criteria, I want all the report configuration tabs to be hidden.</p>
  
  <p>This is done by this users role having the permission “access CiviReport” enabled but the “access Report Criteria” one disabled.</p>
  
  <p>But when disabling the “access Report Criteria” permission, the "Print report" and "Print to PDF" actions become inactive.</p>
  
  <p>Is there any way to get what I want ?</p>
  
  <p>Thanks for help.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-16T08:36:32.677Z
Comments.Text: This seems to be an issue in core. If `Print report` and `Print to PDF` action on the menu is not performing any task, it should be either fixed OR may be hidden from the menu item.
Comments.UserDisplayName: jitendra - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-11T23:43:45.240Z
Comments.Text: How can we ask the development team for a fix ?
Comments.UserDisplayName: Jean-Pierre PECUCHET
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-12T02:58:55.283Z
Comments.Text: You could start by filing an issue at https://lab.civicrm.org/dev/core/issues/new
Comments.UserDisplayName: jitendra - fuzion
Tags: <civireport><permissions>
Title: How to hide configuration tabs of a report with the "print to pdf" action remaining active?
ThreadText: # How to hide configuration tabs of a report with the "print to pdf" action remaining active?
  
  (Asked by: username_0 on 2018-01-15)
  
  I want a category of users can access some reports, view the results on the screen and print them to PDF.
  And to prevent any modification of the criteria, I want all the report configuration tabs to be hidden.
  
  This is done by this users role having the permission “access CiviReport” enabled but the “access Report Criteria” one disabled.
  
  But when disabling the “access Report Criteria” permission, the "Print report" and "Print to PDF" actions become inactive.
  
  Is there any way to get what I want ?
  
  Thanks for help.
  
  **Tags:** civireport, permissions
  
  > **Comments:**
  > **username_1**: This seems to be an issue in core. If `Print report` and `Print to PDF` action on the menu is not performing any task, it should be either fixed OR may be hidden from the menu item.  
  > **username_0**: How can we ask the development team for a fix ?  
  > **username_1**: You could start by filing an issue at https://lab.civicrm.org/dev/core/issues/new  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-01-15. Score: 2
  
  This seems to be a bug in CiviCRM. Below patch will allow anonymous user to Print report or Print PDF.
  
  ```
  diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php
  index 75a614c836..9acd75c584 100644
  --- a/CRM/Report/Form.php
  +++ b/CRM/Report/Form.php
  @@ -2580,7 +2571,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       if (empty($this->_params) &&
         $this->_force
       ) {
  -      $this->setParams($this->_formValues);
  +      $this->setParams($this->_submitValues);
       }
  
       // hack to fix params when submitted from dashboard, CRM-8532
  @@ -2588,7 +2579,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
       // 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) {
  -      $this->setParams($this->_formValues);
  +      $this->setParams($this->_submitValues);
       }
  
  ```
  
  Not sure what is the difference between formvalues and submitvalues even though params are considered from submit values for processing.
  
  HTH
  
  username_2
  
  > **Comments:**
  > **username_2**: Can you mark it as answered and close the question?  
  > **username_0**: Yes works, but not so good ! Many new troubles now : - get a "showBlocks array item not in .tpl = optionField_6" alarm when saving a report; - impossible to modify a report criteria; - when having two reports open in two browser tabs, if deleting one with the "delete" action, we get also the other one to be deleted with the "copy" action. Seems that old parameters are used, not the new actual ones.  
  
  ---
  
  