diff --git a/templates/CRM/Mailing/Page/Report.tpl b/templates/CRM/Mailing/Page/Report.tpl index 78d3150287a0..4c91bd823c27 100644 --- a/templates/CRM/Mailing/Page/Report.tpl +++ b/templates/CRM/Mailing/Page/Report.tpl @@ -21,7 +21,7 @@ {ts}Successful Deliveries{/ts} {$report.event_totals.delivered} ({$report.event_totals.delivered_rate|string_format:"%0.2f"}%) {$report.event_totals.actionlinks.delivered} -{if $report.mailing.open_tracking} +{if array_key_exists('mailing', $report) && $report.mailing.open_tracking} {ts}Unique Opens{/ts} {$report.event_totals.opened} ({$report.event_totals.opened_rate|string_format:"%0.2f"}%) {$report.event_totals.actionlinks.opened_unique} @@ -29,7 +29,7 @@ {$report.event_totals.total_opened} {$report.event_totals.actionlinks.opened} {/if} -{if $report.mailing.url_tracking} +{if array_key_exists('mailing', $report) && $report.mailing.url_tracking} {ts}Click-throughs{/ts} {$report.event_totals.url} ({$report.event_totals.clickthrough_rate|string_format:"%0.2f"}%) {$report.event_totals.actionlinks.clicks} @@ -119,7 +119,7 @@ {/if} -{if $report.mailing.url_tracking && $report.click_through|@count > 0} +{if array_key_exists('mailing', $report) && $report.mailing.url_tracking && $report.click_through|@count > 0}
{ts}Click-through Summary{/ts} {strip} @@ -148,7 +148,7 @@ {ts}Content{/ts} {strip} -{if $report.mailing.body_text} +{if array_key_exists('mailing', $report) && $report.mailing.body_text} {/if} -{if $report.mailing.attachment} +{if array_key_exists('mailing', $report) && $report.mailing.attachment}
{ts}Text Message{/ts} @@ -172,7 +172,7 @@
{ts}Attachments{/ts} @@ -193,6 +193,7 @@ {ts}Mailing Settings{/ts} +{if array_key_exists('mailing', $report)} {if !$report.mailing.sms_provider_id} @@ -203,10 +204,11 @@ {/if} +{/if} {if $public_url} {/if} -{if $report.mailing.campaign} +{if array_key_exists('mailing', $report) && $report.mailing.campaign} {/if}
{ts}Mailing Name{/ts}{$report.mailing.name}
{ts}Subject{/ts}{$report.mailing.subject}
{ts}Open tracking{/ts}{if $report.mailing.open_tracking}{ts}Enabled{/ts}{else}{ts}Disabled{/ts}{/if}
{ts}URL Click-through tracking{/ts}{if $report.mailing.url_tracking}{ts}Enabled{/ts}{else}{ts}Disabled{/ts}{/if}
{ts}Public url{/ts} {$public_url}
{ts}Campaign{/ts}{$report.mailing.campaign}