Skip to content
Permalink
Browse files

Fixed issue #14908: The Button "exit and clear survey entrys" should …

…not be on the last page (endmessage)
  • Loading branch information...
ptelu committed Aug 9, 2019
1 parent 531c11d commit 3deda90f665caab5a1d74082ff47ab670fbef903
Showing with 7 additions and 1 deletion.
  1. +7 −1 application/core/LSETwigViewRenderer.php
@@ -439,7 +439,13 @@ private function getPluginsData($sString, $aDatas)
// show "Exit and clear survey" button whenever there is 'srid' key set,
// button won't be rendered on welcome and final page because 'srid' key doesn't exist on those pages
if (isset($_SESSION['survey_'.$surveyid]['srid']) && $aDatas['aSurveyInfo']['active']=='Y') {
// additionally checks for submit page to compensate when srid is needed to render other views
if (
isset($_SESSION['survey_' . $surveyid]['srid'])
&& $aDatas['aSurveyInfo']['active'] == 'Y'
&& $aDatas['aSurveyInfo']['include_content'] !== 'submit'
&& $aDatas['aSurveyInfo']['include_content'] !== 'submit_preview'
) {
$aDatas['aSurveyInfo']['bShowClearAll'] = true;
}
}

0 comments on commit 3deda90

Please sign in to comment.
You can’t perform that action at this time.