View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20858Bug reportsImport/Exportpublic2026-11-16 12:05
Reporterbzga Assigned Toeusweisker  
PrioritynoneSeverityblock 
Status confirmedResolutionopen 
Product Version7.9.x 
Summary20858: Statistics for Subquestions fail to show (right) graphs in expert mode
Description

In "Expert Mode", the html statistic export only shows a graph for the first sub-question of a set. Unfortunatately this graph does not always fit to the results of the sub-question. For the other sub-questions of the set, no graph is shown. In "Simple Mode", the output for all questions is displayed correctly.

The problem might be connected to the fact that the ID of the canvas showing the graph consists of the qqid, but not the sqid, and thus the javascript only adds a graph once (and randomly). Nontheless, changing application/views/admin/export/generatestats/_statisticsoutput_graphs.php to use $rt instead of $qqid did not help, it seems to need more logic there.

Steps To Reproduce

Steps to reproduce

Create a survey with a set of questions and subquestions, and get answers to these (sub) questions.
Show statistics output in Simple Mode
Show statistics html output for all (sub) questions' results

Expected result

html export should show graphs for all questions and sub questions

Actual result

For a set of sub questions, a graph is shown only for the first sub question, while the canvas elements of the following sub questions stay empty. The graph of the first sub question does not neccessarily fit to the first sub question's result, but sometimes comes from another sub question of the set.

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 7.10.0+261109
I will donate to the project if issue is resolvedNo
BrowserFirefox 153.7.0esr (64-Bit), MS Edge 157.0.4341.60 (64-Bit)
Database type & versionMariaDB 10.11.15
Server OS (if known)Debian Linux
Webserver software & version (if known)Apache 2.4
PHP Version8.2
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

eusweisker

eusweisker

2026-11-16 12:04

manager   ~87280

Last edited: 2026-11-16 12:05

The issue lies in the application/helpers/admin/statistics_helper.php (line 3225). explode splits the sub-question's field name, but [0] takes the first piece of it (which is the parent question's code) only. Which means that both sub-questions end up with the same data key. The simple mode keeps the whole field name.

Issue History

Date Modified Username Field Change
2026-11-16 10:55 bzga New Issue
2026-11-16 10:57 eusweisker Assigned To => eusweisker
2026-11-16 10:57 eusweisker Status new => acknowledged
2026-11-16 12:04 eusweisker Status acknowledged => confirmed
2026-11-16 12:04 eusweisker Note Added: 87280
2026-11-16 12:04 eusweisker Bug heat 0 => 2
2026-11-16 12:05 eusweisker Note Edited: 87280