Skip to content

Commit

Permalink
Merge pull request #13390 from MegaphoneJon/core-609
Browse files Browse the repository at this point in the history
fixes core#609 - view 'Advanced Search' links without 'view all conta…
  • Loading branch information
monishdeb authored Feb 5, 2019
2 parents e0c7f47 + 117f955 commit 2b65ef5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CRM/Mailing/BAO/Mailing.php
Original file line number Diff line number Diff line change
Expand Up @@ -2179,12 +2179,10 @@ public static function &report($id, $skipDetails = FALSE, $isSMS = FALSE) {
);

$actionLinks = array(CRM_Core_Action::VIEW => array('name' => ts('Report')));
if (CRM_Core_Permission::check('view all contacts')) {
$actionLinks[CRM_Core_Action::ADVANCED] = array(
'name' => ts('Advanced Search'),
'url' => 'civicrm/contact/search/advanced',
);
}
$actionLinks[CRM_Core_Action::ADVANCED] = array(
'name' => ts('Advanced Search'),
'url' => 'civicrm/contact/search/advanced',
);
$action = array_sum(array_keys($actionLinks));

$report['event_totals']['actionlinks'] = array();
Expand Down

0 comments on commit 2b65ef5

Please sign in to comment.