Merge pull request #15322 from alifrumin/removePrintIcon
authorMatthew Wire <mjw@mjwconsult.co.uk>
Wed, 9 Oct 2019 15:44:42 +0000 (17:44 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2019 15:44:42 +0000 (17:44 +0200)
Remove Print Icon

1  2 
CRM/Contribute/Form/ContributionBase.php
CRM/Event/Form/Registration.php
css/civicrm.css

index ecfeb7455c237d01047c753b82309c64f3303aac,f51adb5fc6be9a3d58d9fb11a8ac8a1df96f4709..21cc18e75a1cc2cba6f4df2f939c3756677c011b
@@@ -286,9 -286,6 +286,6 @@@ class CRM_Contribute_Form_ContributionB
  
      // we do not want to display recently viewed items, so turn off
      $this->assign('displayRecent', FALSE);
-     // Contribution page values are cleared from session, so can't use normal Printer Friendly view.
-     // Use Browser Print instead.
-     $this->assign('browserPrint', TRUE);
  
      // action
      $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add');
        CRM_Utils_Array::value('cancelSubscriptionUrl', $this->_values)
      );
  
 -    $this->setTitle(($this->_pcpId ? $this->_pcpInfo['title'] : $this->_values['title']));
 +    $title = !empty($this->_values['frontend_title']) ? $this->_values['frontend_title'] : $this->_values['title'];
 +
 +    $this->setTitle(($this->_pcpId ? $this->_pcpInfo['title'] : $title));
      $this->_defaults = [];
  
      $this->_amount = $this->get('amount');
index a20158d2a3b0bf9526a1a2a6d8fa1202ddc4e0e4,48fb9ed91c21abd0bfdae021fd22e2e240395c59..c313e911d93164b5a577c4e22ec6e728b6220e85
@@@ -394,9 -394,6 +394,6 @@@ class CRM_Event_Form_Registration exten
  
      // we do not want to display recently viewed items on Registration pages
      $this->assign('displayRecent', FALSE);
-     // Registration page values are cleared from session, so can't use normal Printer Friendly view.
-     // Use Browser Print instead.
-     $this->assign('browserPrint', TRUE);
  
      $isShowLocation = CRM_Utils_Array::value('is_show_location', $this->_values['event']);
      $this->assign('isShowLocation', $isShowLocation);
     * Handle process after the confirmation of payment by User.
     *
     * @param int $contactID
 -   * @param null $contribution
 -   * @param null $payment
 +   * @param \CRM_Contribute_BAO_Contribution $contribution
     */
 -  public function confirmPostProcess($contactID = NULL, $contribution = NULL, $payment = NULL) {
 +  public function confirmPostProcess($contactID = NULL, $contribution = NULL) {
      // add/update contact information
 -    $fields = array();
      unset($this->_params['note']);
  
      //to avoid conflict overwrite $this->_params
          }
  
          $this->set('value', $value);
 -        $this->confirmPostProcess($contactID, NULL, NULL);
 +        $this->confirmPostProcess($contactID, NULL);
  
          //lets get additional participant id to cancel.
          if ($this->_allowConfirmation && is_array($cancelledIds)) {
diff --combined css/civicrm.css
index 932661cfc60dc849bb38853382c266858c3c4342,83b5ca35f0d5149d8226e78809f0427894665113..61b77a72a3fa49eebcb92300536109bda9e8d2fe
@@@ -1812,16 -1812,6 +1812,6 @@@ input.crm-form-entityref 
  
  /* Set/alter ICONS */
  
- #crm-container div#printer-friendly {
-   float: right;
-   position: relative;
-   margin: -2em 0.5em 0 0;
- }
- /* For Joomla, margin 0 works correctly */
- #crm-container table#crm-content div#printer-friendly {
-   margin: 0;
- }
  #crm-container .order-icon {
    height: 15px;
    width: 10px;
@@@ -3661,7 -3651,6 +3651,7 @@@ span.crm-status-icon 
  }
  .crm-container.crm-public .select2-container .select2-choice {
    padding: 5px 5px 5px 8px;
 +  height: 35px;
  }
  .crm-container.crm-public .select2-container-multi .select2-choices {
    padding: 4px;