View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06874Bug reportsSurvey takingpublic2012-11-15 08:31
Reportermitch54 Assigned Tomachaven  
PriorityhighSeverityminor 
Status closedResolutionfixed 
Summary06874: Can't get survey answers into separate columns
Description

I have a user who is trying to put the available answers for a list-radio question into 3 columns. When I preview the question by itself, it shows 3 columns but when I preview the entire survey it remains in 1 column. I have gone to the advanced settings and changed the display columns to 3 but it still only shows 1 column. I use Firebug to look at the code and it shows 3 Unordered Columns under the class preview question tool but only 1 in the survey preview tool

<td class="answer">
<ul class="cols-3-ul first">
<ul class="cols-3-ul">
<ul class="cols-3-ul last">
<input id="java29488X16X137" type="hidden" value="" name="java29488X16X137">

and for the survey preview

<td class="answer">
<ul>
<li id="javatbd29488X16X137A">
<li id="javatbd29488X16X137B">
<li id="javatbd29488X16X137C">
<li id="javatbd29488X16X137D">
<li id="javatbd29488X16X137E">
<li id="javatbd29488X16X137F">
<li id="javatbd29488X16X137G">
<li id="javatbd29488X16X137H">
<li id="javatbd29488X16X137I">
<li id="javatbd29488X16X137J">
<li id="javatbd29488X16X137K">
<li id="javatbd29488X16X137L">
<li id="javatbd29488X16X137M">
<li id="javatbd29488X16X137N">
<li id="javatbd29488X16X137O">
<li id="javatbd29488X16X137P">
<li id="javatbd29488X16X137Q">
<li id="javatbd29488X16X137R">
<li id="javatbd29488X16X137S">
<li id="javatbd29488X16X137T">
<li id="javatbd29488X16X137U">
<li id="javatbd29488X16X137V">
<li id="javatbd29488X16X137W">
<li id="javatbd29488X16X137X">
<li id="javatbd29488X16X137Y">
<li id="javatbd29488X16X137Z">
<li id="javatbd29488X16X137Z1">
</ul>
<input id="java29488X16X137" type="hidden" value="A" name="java29488X16X137">

Steps To Reproduce

Use a list(radio) question and list more than 2-3 answers, then go to advanced settings and set the display columns to 2 or 3. Look at the results in both question preview AND survey preview modes

Additional Information

We are using version 1.92+build 120919

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)120919
I will donate to the project if issue is resolvedNo
BrowserFirefox 15.0.1
Database type & versionMySQL 5.166
Server OS (if known)Ubuntu
Webserver software & version (if known)11.10.2 64bit
PHP Versionphp 5.3.6-13

Users monitoring this issue

There are no users monitoring this issue.

Activities

tpartner

tpartner

2012-11-15 00:24

partner   ~22171

machaven, after a little testing, I find that when there are several radio questions on a page and one is set to columns=1, then all of the following questions are forced into columns=1 regardless of their advanced setting.

I also find that $column_style does not seem to be defined at common_functions.php ~ line 1070.

Maybe this will help...maybe not...

machaven

machaven

2012-11-15 00:57

reporter   ~22172

tpartner, you are right on the money with $column_style. Wrong operator used when checking if it's set..

machaven

machaven

2012-11-15 01:51

reporter   ~22173

https://github.com/LimeSurvey/LimeSurvey/pull/53

machaven

machaven

2012-11-15 08:27

reporter   ~22174

Fix committed to 1.92 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=10293

c_schmitz

c_schmitz

2012-11-15 08:31

administrator   ~22175

Fixed in 1.92 repository. Not a issue in 2.0.
mitch54, there won't be anymore release for 1.92 so you will have to patch your version yourself (see changeset below).

Related Changesets

LimeSurvey: 1.92 0a82d4f9

2012-11-15 00:25:46

machaven

Details Diff
Fixed issue 06874: Can't get survey answers into separate columns Affected Issues
06874
mod - common_functions.php Diff File

LimeSurvey: 1.92 de0e0f96

2012-11-15 07:27:46

c_schmitz

Details Diff
Merge pull request #53 from machaven/0a82d4f96532cfc3d9da05f68b11af1bb6f6a2d0

Fix for bug 06874
Affected Issues
06874
mod - common_functions.php Diff File

Issue History

Date Modified Username Field Change
2012-11-14 20:40 mitch54 New Issue
2012-11-14 20:40 mitch54 File Added: limesurvey_survey_29488.lss.xml
2012-11-14 23:24 machaven Assigned To => machaven
2012-11-14 23:24 machaven Status new => assigned
2012-11-15 00:24 tpartner Note Added: 22171
2012-11-15 00:57 machaven Note Added: 22172
2012-11-15 01:51 machaven Note Added: 22173
2012-11-15 08:27 machaven Changeset attached => LimeSurvey 1.92 0a82d4f9
2012-11-15 08:27 c_schmitz Changeset attached => LimeSurvey 1.92 de0e0f96
2012-11-15 08:27 machaven Note Added: 22174
2012-11-15 08:27 machaven Resolution open => fixed
2012-11-15 08:31 c_schmitz Note Added: 22175
2012-11-15 08:31 c_schmitz Status assigned => closed