implemented Survey final page detection (#9199)
This commit is contained in:
parent
e505238fc7
commit
7539246e9d
1 changed files with 4 additions and 0 deletions
|
|
@ -826,6 +826,10 @@ sub prepareShowSurveyTemplate {
|
|||
$section->{'showTimeLimit'} = $self->get('showTimeLimit');
|
||||
$section->{'minutesLeft'} = int((($self->response->startTime() + (60 * $self->get('timeLimit'))) - time())/60);
|
||||
|
||||
if(scalar @$questions == ($section->{'totalQuestions'} - $section->{'questionsAnswered'})){
|
||||
$section->{isLastPage} = 1
|
||||
}
|
||||
|
||||
my $out = $self->processTemplate( $section, $self->get("surveyQuestionsId") );
|
||||
|
||||
$self->session->http->setMimeType('application/json');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue