View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
16877Bug reportsRemoteControlpublic2026-10-29 19:49
Reporterpparzer Assigned Toc_schmitz  
PrioritylowSeverityminor 
Status resolvedResolutionfixed 
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 heat4
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
Git branch / Pull Request URL

Users monitoring this issue

pparzer

Activities

c_schmitz

c_schmitz

2026-10-29 19:49

administrator   ~87001

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

Related Changesets

LimeSurvey: master 87dcf096

2026-10-29 19:42

c_schmitz


Details Diff
Fixed issue 16877: The API function get_question_properties returned answer options with the codes 0, 1, 2, ... as a plain list without their codes
Dev answeroptions, available_answers and each scale of dual scale answeroptions are now returned as objects keyed by code, so JSON-RPC keeps them as object; BigData::xmlrpc_echo() encodes a stdClass like its array, so XML-RPC output is unchanged
Affected Issues
16877
mod - application/helpers/remotecontrol/remotecontrol_handle.php Diff File
mod - application/libraries/BigData.php Diff File
mod - tests/unit/helpers/remotecontrol/RemoteControlQuestionPropertiesTest.php Diff File

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
2026-10-29 19:49 c_schmitz Changeset attached => LimeSurvey master 87dcf096
2026-10-29 19:49 c_schmitz Note Added: 87001
2026-10-29 19:49 c_schmitz Assigned To => c_schmitz
2026-10-29 19:49 c_schmitz Status confirmed => resolved
2026-10-29 19:49 c_schmitz Resolution open => fixed
2026-10-29 19:49 c_schmitz Bug heat 2 => 4