From 223313a98222e88240b88311de57c3dc43790943 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Thu, 15 Dec 2016 14:21:10 -0500 Subject: [PATCH] CRM-19782 - Don't show 'View' link on printed Participant Listing reports --- CRM/Report/Form/Event/ParticipantListing.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Report/Form/Event/ParticipantListing.php b/CRM/Report/Form/Event/ParticipantListing.php index 4917c7f27d..8c0909b1f7 100644 --- a/CRM/Report/Form/Event/ParticipantListing.php +++ b/CRM/Report/Form/Event/ParticipantListing.php @@ -758,7 +758,8 @@ ORDER BY cv.label $participantTitle = ts('View Participant Record'); $rows[$rowNum]['civicrm_contact_sort_name_linked'] = "$displayName"; - if ($this->_outputMode !== 'csv') { + // Add a "View" link to the participant record if this isn't a CSV/PDF/printed document. + if ($this->_outputMode !== 'csv' && $this->_outputMode !== 'pdf' && $this->_outputMode !== 'print') { $rows[$rowNum]['civicrm_contact_sort_name_linked'] .= "" . ts('View') . ""; -- 2.25.1