From b1dd8421de53004fa9dcdd43d114b8c1dbb7b375 Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Fri, 20 Mar 2015 11:14:11 +0530 Subject: [PATCH] CRM-14105 - WordPress: mail_report Scheduled Job "access denied" unless report permission = Everyone https://issues.civicrm.org/jira/browse/CRM-14105 --- templates/CRM/common/drupal.tpl | 2 +- templates/CRM/common/drupal6.tpl | 2 +- templates/CRM/common/joomla.tpl | 2 +- templates/CRM/common/print.tpl | 2 +- templates/CRM/common/printBody.tpl | 2 +- templates/CRM/common/wordpress.tpl | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/CRM/common/drupal.tpl b/templates/CRM/common/drupal.tpl index a754729679..d77d5abcdd 100644 --- a/templates/CRM/common/drupal.tpl +++ b/templates/CRM/common/drupal.tpl @@ -62,7 +62,7 @@ {include file="CRM/common/status.tpl"} {crmRegion name='page-body'} - {if isset($isForm) and $isForm} + {if isset($isForm) and $isForm and isset($formTpl)} {include file="CRM/Form/$formTpl.tpl"} {else} {include file=$tplFile} diff --git a/templates/CRM/common/drupal6.tpl b/templates/CRM/common/drupal6.tpl index 07d5da7928..2008ddd6f0 100644 --- a/templates/CRM/common/drupal6.tpl +++ b/templates/CRM/common/drupal6.tpl @@ -64,7 +64,7 @@ {include file="CRM/common/status.tpl"} {crmRegion name='page-body'} - {if isset($isForm) and $isForm} + {if isset($isForm) and $isForm and isset($formTpl)} {include file="CRM/Form/$formTpl.tpl"} {else} {include file=$tplFile} diff --git a/templates/CRM/common/joomla.tpl b/templates/CRM/common/joomla.tpl index 171dee955f..936cc20dbb 100644 --- a/templates/CRM/common/joomla.tpl +++ b/templates/CRM/common/joomla.tpl @@ -85,7 +85,7 @@ {include file="CRM/common/status.tpl"} {crmRegion name='page-body'} - {if isset($isForm) and $isForm} + {if isset($isForm) and $isForm and isset($formTpl)} {include file="CRM/Form/$formTpl.tpl"} {else} {include file=$tplFile} diff --git a/templates/CRM/common/print.tpl b/templates/CRM/common/print.tpl index 255e6a57bf..32118854c3 100644 --- a/templates/CRM/common/print.tpl +++ b/templates/CRM/common/print.tpl @@ -45,7 +45,7 @@ {crmRegion name='page-body' allowCmsOverride=0} - {if $isForm} + {if $isForm and isset($formTpl)} {include file="CRM/Form/$formTpl.tpl"} {else} {include file=$tplFile} diff --git a/templates/CRM/common/printBody.tpl b/templates/CRM/common/printBody.tpl index 7c875453ac..b42876fda9 100644 --- a/templates/CRM/common/printBody.tpl +++ b/templates/CRM/common/printBody.tpl @@ -26,7 +26,7 @@ {* printBody.tpl: wrapper for Print views without HTML surrounds. *} -{if $isForm} +{if $isForm and isset($formTpl)} {include file="CRM/Form/$formTpl.tpl"} {else} {include file=$tplFile} diff --git a/templates/CRM/common/wordpress.tpl b/templates/CRM/common/wordpress.tpl index 77da6eaa2b..641ea9efdc 100644 --- a/templates/CRM/common/wordpress.tpl +++ b/templates/CRM/common/wordpress.tpl @@ -81,7 +81,7 @@ {include file="CRM/common/status.tpl"} {crmRegion name='page-body'} - {if isset($isForm) and $isForm} + {if isset($isForm) and $isForm and isset($formTpl)} {include file="CRM/Form/$formTpl.tpl"} {else} {include file=$tplFile} -- 2.25.1