More Survey refactoring
refactored out repetitive checking of takenCount added i18n template variables to Survey template so that user is told what happened for timeouts etc..
This commit is contained in:
parent
6815cd76aa
commit
c9861bdf8f
5 changed files with 71 additions and 52 deletions
|
|
@ -553,7 +553,7 @@ sub recordResponses {
|
|||
$submittedAnswerResponse = $submittedResponses->{ $answer->{id} . '-year' } . " " . $submittedResponses->{ $answer->{id} . '-month' };
|
||||
} else {
|
||||
if ( !defined $submittedAnswerResponse || $submittedAnswerResponse !~ /\S/ ) {
|
||||
$self->session->log->debug("Skipping invalid submitted answer response: $submittedAnswerResponse");
|
||||
$self->session->log->debug("Skipping invalid submitted answer response: $submittedAnswerResponse") if $submittedAnswerResponse;
|
||||
next;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue