View Issue Details

This bug affects 1 person(s).
 0
IDProjectCategoryView StatusLast Update
12595Bug reportsSurvey takingpublic2018-05-23 11:56
Reporterpixelit Assigned ToLouisGac 
PrioritynoneSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version2.67.x 
Summary12595: Multiple Choice with Comments: displaying question does not show comment field
Description

For this question type if a subquestion is initialy invisible, because the visibility is based on a previous question. If the answer is given, only the checkbox is visible but not the comment.

Steps To Reproduce

Add 2 questions. On Multiple Choice (can be any other question) and one Multiple Choice with Comments. Add a condition that giving an answer in the first question displays a subquestion with comment in the second. Start the survey.

Additional Information

I found the error in this file: application/views/survey/questions/multiplechoice_with_comments/rows/answer_row.php
In line 31 the display style $sDisplayStyle and id is set on the checkbox. In line 69 the display style $sDisplayStyle is set on the comment-container - but no id.
The corresponding javascript code only changes the display style on the checkbox (since the id is set there) but nothing is done to the comment-container.

My fix (which may not be good), was to remove the $sDisplayStyle from line 31 and 69 and move the $sDisplayStyle and the id to line 27. Therefore the whole tr (the container) gets the id and display style and the whole row is displayed.

TagsNo tags attached.
Bug heat0
Complete LimeSurvey version number (& build)Version 2.67.3+170728
I will donate to the project if issue is resolvedNo
BrowserChrome, Firefox, Safari
Database type & versionMysql
Server OS (if known)Debian
Webserver software & version (if known)Apache
PHP Version7

Users monitoring this issue

There are no users monitoring this issue.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-08-16 13:35 pixelit New Issue
2018-05-23 11:56 LouisGac Assigned To => LouisGac
2018-05-23 11:56 LouisGac Status new => closed
2018-05-23 11:56 LouisGac Resolution open => unable to reproduce