Skip to content

Commit

Permalink
Merge pull request #13354 from seamuslee001/lab_core_35
Browse files Browse the repository at this point in the history
dev/mail#35 Ensure that Public View link is visible in Scheduled and …
  • Loading branch information
yashodha authored Dec 27, 2018
2 parents 3285129 + 28daab7 commit 29e86a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CRM/Mailing/Selector/Browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,14 @@ public function &getRows($action, $offset, $rowCount, $sort, $output = NULL) {

$validLinks = $actionLinks;
if (($mailingUrl = CRM_Mailing_BAO_Mailing::getPublicViewUrl($row['id'])) != FALSE) {
$validLinks[] = array(
$validLinks[CRM_Core_Action::BROWSE] = array(
'name' => ts('Public View'),
'url' => 'civicrm/mailing/view',
'qs' => 'id=%%mid%%&reset=1',
'title' => ts('Public View'),
'fe' => TRUE,
);
$actionMask |= CRM_Core_Action::BROWSE;
}

$rows[$key]['action'] = CRM_Core_Action::formLink(
Expand Down

0 comments on commit 29e86a0

Please sign in to comment.