Skip to content

Commit

Permalink
Fixed issue #10439: right subquestion selector in statistics response…
Browse files Browse the repository at this point in the history
… filters
  • Loading branch information
LouisGac committed Feb 17, 2016
1 parent 6f1bcd2 commit 7bba4ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion application/controllers/admin/statistics.php
Expand Up @@ -158,9 +158,11 @@ public function run($surveyid = 0, $subaction = null)
//put the question information into the filter array
$filters = array();
$aGroups = array();
$keyone = 0;
foreach ($rows as $row)
{
//store some column names in $filters array

$filters[]=array($row['qid'],
$row['gid'],
$row['type'],
Expand All @@ -174,12 +176,13 @@ public function run($surveyid = 0, $subaction = null)
$aGroups[$row['group_name']]['gid'] = $row['gid'];
$aGroups[$row['group_name']]['name'] = $row['group_name'];
}
$aGroups[$row['group_name']]['questions'][] = array($row['qid'],
$aGroups[$row['group_name']]['questions'][$keyone] = array($row['qid'],
$row['gid'],
$row['type'],
$row['title'],
$row['group_name'],
flattenText($row['question'])); ;
$keyone = $keyone+1;
}
$aData['filters'] = $filters;
$aData['aGroups'] = $aGroups;
Expand Down
Expand Up @@ -861,7 +861,7 @@
! - List (Dropdown)
*/
default:

echo "<!-- Default rendering in _question view -->";
//loop through answers
foreach($result[$key1] as $row)
{
Expand Down

0 comments on commit 7bba4ee

Please sign in to comment.