Fix a bad SQL lookup which affected the Survey Statistical Report. Fixes bug #12091

This commit is contained in:
Colin Kuskie 2011-04-04 16:52:04 -07:00
parent 83d1897852
commit 83cb45d8d1
2 changed files with 3 additions and 2 deletions

View file

@ -2363,12 +2363,12 @@ sub www_viewStatisticalOverview {
}
}
else{
my $responses = $db->read('select value,answerComment from Survey_tempReport'
my $responses = $db->read('select answerValue,answerComment from Survey_tempReport'
. ' where sectionNumber=? and questionNumber=?',
[$sectionIndex,$questionIndex]);
while (my $response = $responses->hashRef) {
push @answerloop,{
'answer_value' =>$response->{value},
'answer_value' =>$response->{answerValue},
'answer_comment' =>$response->{answerComment}
};
}