View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 20858 | Bug reports | Import/Export | public | 2026-11-16 10:55 | 2026-11-16 12:05 |
| Reporter | bzga | Assigned To | eusweisker | ||
| Priority | none | Severity | block | ||
| Status | confirmed | Resolution | open | ||
| Product Version | 7.9.x | ||||
| Summary | 20858: 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 reproduceCreate a survey with a set of questions and subquestions, and get answers to these (sub) questions. Expected resulthtml export should show graphs for all questions and sub questions Actual resultFor 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. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 2 | ||||
| Complete LimeSurvey version number (& build) | LimeSurvey Community Edition Version 7.10.0+261109 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Firefox 153.7.0esr (64-Bit), MS Edge 157.0.4341.60 (64-Bit) | ||||
| Database type & version | MariaDB 10.11.15 | ||||
| Server OS (if known) | Debian Linux | ||||
| Webserver software & version (if known) | Apache 2.4 | ||||
| PHP Version | 8.2 | ||||
| Git branch / Pull Request URL | |||||
|
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. |
|
| 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 |