From 71cffff64e060f3a14db88c763d3b86f421c497e Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Wed, 7 Oct 2020 17:33:09 -0400 Subject: [PATCH] ParticipantListing Report: only display the View link for web, unhardcode others --- CRM/Report/Form/Event/ParticipantListing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Report/Form/Event/ParticipantListing.php b/CRM/Report/Form/Event/ParticipantListing.php index faefeac943..7bd68693a0 100644 --- a/CRM/Report/Form/Event/ParticipantListing.php +++ b/CRM/Report/Form/Event/ParticipantListing.php @@ -723,7 +723,7 @@ ORDER BY cv.label $rows[$rowNum]['civicrm_contact_sort_name_linked'] = "$displayName"; // 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') { + if (empty($this->getOutputMode())) { $rows[$rowNum]['civicrm_contact_sort_name_linked'] .= "" . ts('View') . ""; -- 2.25.1