ParticipantListing Report: only display the View link for web, unhardcode others
authorMathieu Lutfy <mathieu@symbiotic.coop>
Wed, 7 Oct 2020 21:33:09 +0000 (17:33 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Wed, 7 Oct 2020 21:33:09 +0000 (17:33 -0400)
CRM/Report/Form/Event/ParticipantListing.php

index faefeac943a7db44acecc51e84d92377aa15a55f..7bd68693a0dc51de50536ebf0c7bb783bd9c1c2c 100644 (file)
@@ -723,7 +723,7 @@ ORDER BY  cv.label
 
         $rows[$rowNum]['civicrm_contact_sort_name_linked'] = "<a title='$contactTitle' href=$url>$displayName</a>";
         // 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'] .=
             "<span style='float: right;'><a title='$participantTitle' href=$viewUrl>" .
             ts('View') . "</a></span>";