Skip to content

Commit

Permalink
Merge pull request #1052 from adamzammit/fix-13609
Browse files Browse the repository at this point in the history
Fixed issue #13609: {QUEXMLPDF} Placeholder in template for Save to P…
  • Loading branch information
adamzammit committed Apr 23, 2018
2 parents bf3fd7a + d598358 commit 6d6cf33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/replacements_helper.php
Expand Up @@ -230,7 +230,7 @@ function templatereplace($line, $replacements = array(), &$redata = array(), $de
$iscompleted = $thissurvey['iscompleted'] = false;
}

if (isset($surveyid)) {
if (isset($surveyid) && isset($_SESSION['survey_'.$surveyid]['srid'])) {
$_quexmlpdf = CHtml::link(gT("Save as PDF"), array("/printanswers/view/surveyid/{$surveyid}/printableexport/quexmlpdf"), array('data-toggle'=>'tooltip', 'data-placement'=>'right', 'title'=>gT("Note: Print will not include items on this page")));
} else {
$_quexmlpdf = "";
Expand Down

0 comments on commit 6d6cf33

Please sign in to comment.