View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
15922Bug reportsRemoteControlpublic2021-11-03 09:19
Reportermarkusmr Assigned Togalads  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version4.1.7 
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.
Bug heat6
Complete LimeSurvey version number (& build)4.1.7+200224
I will donate to the project if issue is resolvedNo
Browser
Database type & 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

Users monitoring this issue

There are no users monitoring this issue.

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.

ollehar

ollehar

2021-03-10 23:04

administrator   ~63240

Please update to the latest version and check if the bug can still be reproduced. Thank you.

galads

galads

2021-11-03 09:18

reporter   ~67074

Hello markusmr,
I checked this with the latest version and could not reproduce, so this is most likely fixed for good.
Therefore, I am closing this issue. If you still can reproduce the issue using the latest version, please feel free to re-open the issue.
Thank you!

galads

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
2021-03-10 23:04 ollehar Status new => feedback
2021-03-10 23:04 ollehar Note Added: 63240
2021-11-03 09:18 galads Note Added: 67074
2021-11-03 09:18 galads Bug heat 4 => 6
2021-11-03 09:19 galads Assigned To => galads
2021-11-03 09:19 galads Status feedback => closed
2021-11-03 09:19 galads Resolution open => fixed