View Issue Details

IDProjectCategoryView StatusLast Update
13312Bug reports[All Projects] RemoteControlpublic2019-03-08 11:20
ReportermattellenAssigned To 
Status newResolutionopen 
Product Version3.0.x 
Target VersionFixed in Version 
Summary13312: Getting question properties for dual scale question only gives answers for the second scale

When I query the remote control 2 API to get the properties of a dual scale question, I only get half the answers I expect. I'm querying via python (3.4.3) requests (2.18.4)

(sorry for the nonsense, I'm developing on top of the API, and I need some test questions)
The answers:
left scale: This is 66, I'm not chosen, Don't like mash potato
right scale: Dave Gorman, Casualty, Causality

The questions: Is it OK?, Is it now German?, Cement mixer?

Question properties as returned by RemoteControl2:

{'error': None, 'id': 1, 'result': {'attributes_lang': 'No available attributes', 'question': 'Array dual scale', 'sid': '432755', 'preg': '', 'type': '1', 'language': 'en', 'answeroptions': {'A2': {'order': '2', 'answer': 'Casualty', 'scale_id': '1', 'assessment_value': '0'}, 'A3': {'order': '3', 'answer': 'Causality', 'scale_id': '1', 'assessment_value': '0'}, 'A1': {'order': '1', 'answer': 'Dave Gorman', 'scale_id': '1', 'assessment_value': '0'}}, 'subquestions': {'99': {'title': 'SQ003', 'scale_id': '0', 'question': 'Cement mixer?'}, '97': {'title': 'SQ001', 'scale_id': '0', 'question': 'Is it OK?'}, '98': {'title': 'SQ002', 'scale_id': '0', 'question': 'Is it now German?'}}, 'help': 'Rate these on a scale', 'available_answers': {'SQ003': 'Cement mixer?', 'SQ001': 'Is it OK?', 'SQ002': 'Is it now German?'}, 'other': 'N', 'relevance': '1', 'attributes': 'No available attributes', 'same_default': '0', 'qid': '40', 'modulename': None, 'defaultvalue': None, 'gid': '2', 'title': 'q25', 'parent_qid': '0', 'scale_id': '0', 'question_order': '25', 'mandatory': 'N'}}

Steps To Reproduce

Create a questionnaire with a dual scale question.
Get the question properties for the dual scale question using the RemoteControl2 API

TagsNo tags attached.
Complete LimeSurvey version number (& build)Version 3.0.5+180118
I will donate to the project if issue is resolvedNo
Database & DB-Versionmysql Ver 14.14 Distrib 5.7.21, for Linux (x86_64) using EditLine wrapper
Server OS (if known)Ubuntu 16.04
Webserver software & version (if known)Nginx 1.10.3
PHP Version7.0.22




2018-02-08 11:48

administrator   ~46311

@Deusdeorum Any comment?



2018-02-08 13:29

reporter   ~46317

What is your aQuestionSettings data?



2018-02-08 13:41

reporter   ~46318

aQuestionsSettings data is null, I guess. What should it be?



2018-02-08 13:46

reporter   ~46319

Last edited: 2018-02-08 13:50

View 2 revisions

Ok, null should return all. But looks like it only returns scale_id 1 which is the right scale, left scale being ignored, maybe the QID's are different when creating a dual scale question. I can reproduce it.



2019-03-08 11:20

manager   ~50830

Hmm, any updates regarding this issue @Deusdeorum?

Issue History

Date Modified Username Field Change
2018-02-07 15:26 mattellen New Issue
2018-02-08 11:48 ollehar Note Added: 46311
2018-02-08 13:29 Deusdeorum Note Added: 46317
2018-02-08 13:41 mattellen Note Added: 46318
2018-02-08 13:46 Deusdeorum Note Added: 46319
2018-02-08 13:50 Deusdeorum Note Edited: 46319 View Revisions
2019-03-08 11:20 cdorin Note Added: 50830