View Issue Details

IDProjectCategoryView StatusLast Update
15922Bug reports[All Projects] RemoteControlpublic2020-02-27 17:22
Reportermarkusmr Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version4.1.7 
Target VersionFixed in Version 
Summary15922: RPC method list_questions does not return subquestions
Description

The description of the RPC method list_questions states "Return the ids and info of (sub-)questions of a survey/group", but it doesn't actually return subquestions, only base questions.

Steps To Reproduce

Create a survey with a multiple choice question with 1 or more answers. Now call the RPC method list_questions. It will only return the multiple choice question itself, but not the answers (which are subquestions).

TagsNo tags attached.
Complete LimeSurvey version number (& build)4.1.7+200224
I will donate to the project if issue is resolvedNo
Browser
Database & DB-Versionpostgresql-12, 12.1-1.pgdg18.04+1
Server OS (if known)
Webserver software & version (if known)
PHP Version7.2.24-0ubuntu0.18.04.2

Activities

ollehar

ollehar

2020-02-27 10:47

administrator   ~56226

Is this a regression from LS3?

markusmr

markusmr

2020-02-27 11:03

reporter   ~56228

I've never used LS3. I was just looking for a method to get all questions via RPC, but that's currently not possible.

ollehar

ollehar

2020-02-27 11:11

administrator   ~56230

Would you mind test it in LS3 too?

markusmr

markusmr

2020-02-27 11:48

reporter   ~56232

I just checked in Version 3.22.7+200225, it's working fine, subquestions are included. So yes, this is a regression.

ollehar

ollehar

2020-02-27 11:49

administrator   ~56233

OK, thanks!

markusmr

markusmr

2020-02-27 17:22

reporter   ~56243

I just noticed that subquestions are included in the RPC method get_question_properties. So maybe it was intentionally dropped from list_questions.

Issue History

Date Modified Username Field Change
2020-02-27 10:41 markusmr New Issue
2020-02-27 10:47 ollehar Note Added: 56226
2020-02-27 11:03 markusmr Note Added: 56228
2020-02-27 11:11 ollehar Note Added: 56230
2020-02-27 11:48 markusmr Note Added: 56232
2020-02-27 11:49 ollehar Note Added: 56233
2020-02-27 17:22 markusmr Note Added: 56243