Fixed hasTimeLimit to work with the new storage location of the time limit.
This commit is contained in:
parent
0768af119f
commit
4d1f311c42
2 changed files with 3 additions and 2 deletions
|
|
@ -718,7 +718,7 @@ sub www_loadQuestions {
|
|||
$self->session->log->debug('No responseId, surveyEnd');
|
||||
return $self->surveyEnd();
|
||||
}
|
||||
if($self->response->hasTimedOut()){
|
||||
if($self->response->hasTimedOut($self->get('timeLimit'))){
|
||||
$self->session->log->debug('Response hasTimedOut, surveyEnd');
|
||||
return $self->surveyEnd();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,7 +91,8 @@ sub freeze {
|
|||
|
||||
sub hasTimedOut{
|
||||
my $self=shift;
|
||||
return 1 if($self->{startTime} + ($self->{timeLimit} * 60) < time() and $self->{timeLimit} > 0);
|
||||
my $limit = shift;
|
||||
return 1 if($self->{startTime} + ($limit * 60) < time() and $limit > 0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue