View Issue Details

This bug affects 1 person(s).
 18
IDProjectCategoryView StatusLast Update
18814Bug reportsStatisticspublic2023-05-23 15:59
Reportergabrieljenik Assigned Toollehar  
PrioritynoneSeveritycrash 
Status closedResolutionfixed 
Product Version6.0.x 
Summary18814: Array question statistics fail for Remote Control
Description

Using the export statistics in a survey with a single question of type array I get the following error:

Caught while reviewing 18798

ls\tests\RemoteControlExportStatisticsTest::testSurveyWithArrayQuestions
CException: Property "Response_669138.669138X1X12" is not defined.
/var/www/html/limesurvey/vendor/yiisoft/yii/framework/base/CComponent.php:130
/var/www/html/limesurvey/vendor/yiisoft/yii/framework/db/ar/CActiveRecord.php:145
/var/www/html/limesurvey/application/helpers/admin/statistics_helper.php:2356
/var/www/html/limesurvey/application/helpers/admin/statistics_helper.php:4046
/var/www/html/limesurvey/application/helpers/remotecontrol/remotecontrol_handle.php:615
/var/www/html/limesurvey/tests/unit/helpers/remotecontrol/ExportStatisticsTest.php:212
Steps To Reproduce

Run stats through RC using a survey with a single question of type array.

TagsNo tags attached.
Bug heat18
Complete LimeSurvey version number (& build)master
I will donate to the project if issue is resolvedNo
Browser-
Database type & version-
Server OS (if known)-
Webserver software & version (if known)-
PHP Version-

Relationships

related to 18798 ready for mergeollehar Out-of-memory problem in statistics export 
related to 18014 acknowledged Label list is cut off unnecessarily 
has duplicate 18368 feedback export_statistics from API Yields error 

Users monitoring this issue

User List There are no users monitoring this issue.

Activities

tibor.pacalat

tibor.pacalat

2023-05-15 15:34

administrator   ~74974

Can you send a survey file with which I can reproduce this?

gabrieljenik

gabrieljenik

2023-05-15 18:23

manager   ~74988

Fix: https://github.com/LimeSurvey/LimeSurvey/commit/3fb81e51289b6ce90cd2d3749bcc62b2bbf699b5

It is part of this branch holding tests and the bug fix
https://github.com/LimeSurvey/LimeSurvey/tree/dev/rc_export_statistics_array_questions_tests

Can you send a survey file with which I can reproduce this?

https://github.com/LimeSurvey/LimeSurvey/commit/452551526838f1399980de9766b24ae3bae1320d#diff-7196ee086513f130206406511601d8b12835fb7b2d5f72de274ee62d4aa98b43

gabrieljenik

gabrieljenik

2023-05-15 18:25

manager   ~74989

This shall be merged within the merger of the 18798 tests

guest

guest

2023-05-17 11:14

viewer   ~75019

Fix committed to 5.x branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34679

guest

guest

2023-05-17 11:14

viewer   ~75020

Fix committed to 5.x branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=34678

LimeBot

LimeBot

2023-05-22 12:06

administrator   ~75133

Fixed in Release 5.6.22+230523

Related Changesets

LimeSurvey: 5.x fdc7abab

2023-05-17 11:12:48

Gabriel Jenik


Committer: GitHub Details Diff
Fixed issue 18814: Array question statistics fail for Remote Control. (#3141)

Co-authored-by: Lapiu Dev <devgit@lapiu.biz>
Affected Issues
18814
mod - application/helpers/common_helper.php Diff File
add - tests/data/surveys/survey_statistics_one.lsa Diff File
add - tests/data/surveys/survey_statistics_three.lsa Diff File
add - tests/data/surveys/survey_statistics_two.lsa Diff File
add - tests/unit/helpers/remotecontrol/ExportStatisticsArrayQuestionsTest.php Diff File
add - tests/unit/helpers/remotecontrol/ExportStatisticsTest.php Diff File

LimeSurvey: 5.x fdc7abab

2023-05-17 11:12:48

Gabriel Jenik


Committer: GitHub Details Diff
Fixed issue 18814: Array question statistics fail for Remote Control. (#3141)

Co-authored-by: Lapiu Dev <devgit@lapiu.biz>
Affected Issues
18814
mod - application/helpers/common_helper.php Diff File
add - tests/data/surveys/survey_statistics_one.lsa Diff File
add - tests/data/surveys/survey_statistics_three.lsa Diff File
add - tests/data/surveys/survey_statistics_two.lsa Diff File
add - tests/unit/helpers/remotecontrol/ExportStatisticsArrayQuestionsTest.php Diff File
add - tests/unit/helpers/remotecontrol/ExportStatisticsTest.php Diff File

Issue History

Date Modified Username Field Change
2023-05-11 22:11 gabrieljenik New Issue
2023-05-11 22:11 gabrieljenik Issue generated from: 18798
2023-05-11 22:11 gabrieljenik Relationship added related to 18798
2023-05-15 15:34 tibor.pacalat Note Added: 74974
2023-05-15 15:34 tibor.pacalat Bug heat 0 => 2
2023-05-15 18:23 gabrieljenik Note Added: 74988
2023-05-15 18:23 gabrieljenik Bug heat 2 => 4
2023-05-15 18:24 gabrieljenik Assigned To => gabrieljenik
2023-05-15 18:24 gabrieljenik Status new => assigned
2023-05-15 18:25 gabrieljenik Note Added: 74989
2023-05-17 11:14 Changeset attached => LimeSurvey 5.x fdc7abab
2023-05-17 11:14 Changeset attached => LimeSurvey 5.x fdc7abab
2023-05-17 11:14 guest Note Added: 75019
2023-05-17 11:14 guest Note Added: 75020
2023-05-17 11:14 guest Bug heat 4 => 6
2023-05-17 11:14 guest Bug heat 4 => 6
2023-05-17 23:18 gabrieljenik Assigned To gabrieljenik => ollehar
2023-05-17 23:18 gabrieljenik Status assigned => ready for merge
2023-05-22 12:06 LimeBot Note Added: 75133
2023-05-22 12:06 LimeBot Status ready for merge => closed
2023-05-22 12:06 LimeBot Resolution open => fixed
2023-05-22 12:06 LimeBot Bug heat 6 => 8
2023-05-22 23:15 gabrieljenik Relationship added related to 18014
2023-05-23 15:59 gabrieljenik Relationship added has duplicate 18368
2023-05-23 15:59 gabrieljenik Bug heat 8 => 18