View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 16877 | Bug reports | RemoteControl | public | 2020-12-07 15:14 | 2026-10-29 19:49 |
| Reporter | pparzer | Assigned To | c_schmitz | ||
| Priority | low | Severity | minor | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.25.3 | ||||
| Summary | 16877: 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. | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 3.25.3+201208 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Firefox | ||||
| Database type & version | MariaDB 10.3.25 | ||||
| Server OS (if known) | Ubuntu 20.04.1 | ||||
| Webserver software & version (if known) | Apache 2.4.41 | ||||
| PHP Version | 7.4.3 | ||||
| Git branch / Pull Request URL | |||||
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=41155 |
|
|
LimeSurvey: master 87dcf096 2026-10-29 19:42 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 | ||
| 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 |