From 83cb45d8d123ceba5593d5b9d7e01be16b8cf8f9 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 4 Apr 2011 16:52:04 -0700 Subject: [PATCH] Fix a bad SQL lookup which affected the Survey Statistical Report. Fixes bug #12091 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Wobject/Survey.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 813e3fe41..2f63d1b36 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -10,6 +10,7 @@ - rfe #12085: Export Related Story Topics - fixed #12076: Paginator shows no results with cached page index - fixed #12087: Extend WebGUI tests to check template attachments + - fixed #12091: Survey Statistical Overview display 7.10.12 - fixed #12072: Product, related and accessory assets diff --git a/lib/WebGUI/Asset/Wobject/Survey.pm b/lib/WebGUI/Asset/Wobject/Survey.pm index 8e01d1e6f..4ed7a96b2 100644 --- a/lib/WebGUI/Asset/Wobject/Survey.pm +++ b/lib/WebGUI/Asset/Wobject/Survey.pm @@ -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} }; }