Made Survey::getResponseDetails template vars consistent

This commit is contained in:
Patrick Donelan 2009-08-12 06:28:08 +00:00
parent b54a3a0262
commit e85335cbc7
3 changed files with 9 additions and 1 deletions

View file

@ -1510,6 +1510,7 @@ sub getResponseDetails {
$tags->{endDateEpoch} = $endDateEpoch;
$tags->{userId} = $ruserId;
$tags->{username} = $rusername;
$tags->{responseId} = $responseId;
}
return {
templateVars => $tags,
@ -1525,6 +1526,7 @@ sub getResponseDetails {
restart => $tags->{restart},
timeout => $tags->{timeout},
timeoutRestart => $tags->{timeoutRestart},
responseId => $tags->{responseId},
};
}

View file

@ -415,10 +415,11 @@ our $HELP = {
fields => [],
variables => [
{ name => 'complete', description => 'response complete help' },
{ name => 'restart', description => 'response complete help' },
{ name => 'restart', description => 'response restart help' },
{ name => 'timeout', description => 'response timeout help' },
{ name => 'timeoutRestart', description => 'response timeout restart help' },
{ name => 'endDate', description => 'response endDate help' },
{ name => 'responseId', description => 'responseId help' },
],
related => [
{ tag => 'survey template',

View file

@ -981,6 +981,11 @@ directly inside the answer_loop for other types of questions.|,
message => q|A boolean flag indicating whether the Survey Response completed|,
lastUpdated => 1242180657,
},
'responseId help' => {
message => q|The unique GUID for the response|,
lastUpdated => 1242180657,
},
'response restart' => {
message => q|Survey Response restarted|,