View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
16877Bug reportsRemoteControlpublic2020-12-29 17:01
Reporterpparzer Assigned To 
PrioritylowSeverityminor 
Status confirmedResolutionopen 
Product Version3.25.3 
Summary16877: get_question_properties() returns unnamed array for answeroptions if the option code are 0, 1, 2, ...
Description

The API function "get_question_properties()" should return the answer options as named array with the answer codes as array keys. If the answer options start with 0 (like 0, 1, 2, 3), then an unnamed array is returned for the answer options (an array without keys).

Steps To Reproduce

Call get_question_properties() for a question of type "L" with the answer codes 1, 2, 3, and repeat for a question with answer codes 0, 1, 2.

Additional Information

Sample survey and R Notebook showing the bug are attached.

TagsNo tags attached.
Attached Files
test.lss (17,487 bytes)
api-bug.pdf (123,683 bytes)
Bug heat2
Complete LimeSurvey version number (& build)3.25.3+201208
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionMariaDB 10.3.25
Server OS (if known)Ubuntu 20.04.1
Webserver software & version (if known)Apache 2.4.41
PHP Version7.4.3

Users monitoring this issue

pparzer

Activities

Issue History

Date Modified Username Field Change
2020-12-07 15:14 pparzer New Issue
2020-12-07 15:14 pparzer File Added: test.lss
2020-12-07 15:14 pparzer File Added: api-bug.pdf
2020-12-07 15:14 pparzer Issue Monitored: pparzer
2020-12-29 17:01 cdorin Priority none => low
2020-12-29 17:01 cdorin Status new => confirmed