X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCampaign%2FForm%2FSurvey.php;h=b3d21d07d3c5643fbe4871755cc412985cd19921;hb=e100ac07be991fa09fc460871e4bd39ee45355f0;hp=df7318d1870dc8fd86058e390f607a3fda42e889;hpb=9c2e4fb9824d9913d19a7f7e24ada6093a409461;p=civicrm-core.git diff --git a/CRM/Campaign/Form/Survey.php b/CRM/Campaign/Form/Survey.php index df7318d187..b3d21d07d3 100644 --- a/CRM/Campaign/Form/Survey.php +++ b/CRM/Campaign/Form/Survey.php @@ -1,9 +1,9 @@ controller->getPrint() == CRM_Core_Smarty::PRINT_NOFORM || - $this->getVar('_surveyId') <= 0 ) { + if ($this->controller->getPrint() || $this->getVar('_surveyId') <= 0 ) { return parent::getTemplateFileName(); } else {