- fix: viewIndividualSurvey shows "Answer" lines in Survey mode
fixed more spectre memory bugs
This commit is contained in:
parent
5fb7a3c627
commit
aa10f84d87
5 changed files with 6 additions and 2 deletions
|
|
@ -389,6 +389,7 @@ sub runJob {
|
|||
$request->header("X-config",$job->{config});
|
||||
$self->debug("Posting schedule job ".$job->{taskId}." to $url.");
|
||||
$kernel->post( useragent => 'request', { request => $request, response => $session->postback('runJobResponse') });
|
||||
$kernel->post( useragent => 'shutdown'); # we'll still get the response, we're just done sending the request
|
||||
$self->debug("Cron job ".$job->{taskId}." posted.");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -345,6 +345,7 @@ sub runWorker {
|
|||
$request->header("X-instanceId",$instance->{instanceId});
|
||||
$self->debug("Posting workflow instance ".$instance->{instanceId}." to $url.");
|
||||
$kernel->post( useragent => 'request', { request => $request, response => $session->postback('workerResponse') });
|
||||
$kernel->post( useragent => 'shutdown'); # we'll still get the response, we're just done sending the request
|
||||
$self->debug("Workflow instance ".$instance->{instanceId}." posted.");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ sub contentHandler {
|
|||
### inherit Apache request.
|
||||
my $r = shift;
|
||||
my $configFile = shift || $r->dir_config('WebguiConfig');
|
||||
### Instantiate the API for this httpd instance.
|
||||
### nstantiate the API for this httpd instance.
|
||||
my $s = Apache2::ServerUtil->server;
|
||||
### Open new or existing user session based on user-agent's cookie.
|
||||
my $session = WebGUI::Session->open($s->dir_config('WebguiRoot'),$configFile,$r, $s);
|
||||
|
|
|
|||
|
|
@ -1308,7 +1308,7 @@ sub www_viewIndividualSurvey {
|
|||
$var->{'duration.minutes.label'} = $i18n->get(79);
|
||||
$var->{'duration.seconds'} = (($response->{endDate} - $response->{start})%60);
|
||||
$var->{'duration.seconds.label'} = $i18n->get(80);
|
||||
$var->{'answer.label'} = $i18n->get(19);
|
||||
$var->{'answer.label'} = $i18n->get(19) if ($self->get("mode") eq "quiz");
|
||||
$var->{'response.label'} = $i18n->get(66);
|
||||
$var->{'comment.label'} = $i18n->get(57);
|
||||
my $questions = $self->session->db->read("select Survey_questionId,question,answerFieldType from Survey_question
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue