View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
07314Bug reportsPrint Viewpublic2013-03-02 16:34
Reporteruser10811Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07314: ANSWERTABLE displays custom Html code into answers column
Description

When you use some extra html code into answer options, this code will be displayed as plain text when printing the responses

Steps To Reproduce
  1. create a button radio question
  2. set possible answers:
    • <b>yes</b>
    • <b>no</b>
  3. submit and print
Additional Information

attached .lsq export and screenshot

TagsNo tags attached.
Attached Files
html_2013-02-18.gif (3,058 bytes)   
html_2013-02-18.gif (3,058 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)130213
I will donate to the project if issue is resolvedNo
Browsersafari
Database type & version_
Server OS (if known)linux
Webserver software & version (if known)apache
PHP Version5.2.11

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2013-02-20 17:10

administrator   ~24180

Please attach a 1-question sample survey demonstrating the issue - thank you.

user10811

2013-02-20 17:41

  ~24182

(missing) file uploaded - Thx

c_schmitz

c_schmitz

2013-02-20 23:41

administrator   ~24184

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

user10811

2013-02-21 14:13

  ~24191

Last edited: 2013-02-21 14:14

Thanks Carsten..

I just did more try but the situation now seems that html tags are not displayed but in the other hand not interpreted; So in my example if you use 'bold' tags to highlight a word or phrase, everything will be displayed using 'normal' font-weight;
I try replacing ( +/- L 203):
$printoutput .= "\t<tr class='printanswersquestion'><td>{$fname[0]} {$fname[1]}</td><td class='printanswersanswertext'>".flattenText($fname[2])."</td></tr>";
for:
$printoutput .= "\t<tr class='printanswersquestion'><td>{$fname[0]} {$fname[1]}</td><td class='printanswersanswertext'>{$fname[2]}</td></tr>";

...and the behaviour is now ok for me!

Obviously it's just a previous version of LS code based approach, and I've no idea if this syntax is now valid with the new framework.

c_schmitz

c_schmitz

2013-02-26 20:03

administrator   ~24420

New version released.

c_schmitz

c_schmitz

2013-03-02 16:34

administrator   ~24479

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

Related Changesets

LimeSurvey: master a7f29144

2013-02-20 22:41:33

c_schmitz

Details Diff
Fixed issue 07314: Print answers displays custom html code in answers column Affected Issues
07314
mod - application/controllers/PrintanswersController.php Diff File

LimeSurvey: 2.1 d2ccf58f

2013-03-02 14:25:38

c_schmitz

Details Diff
Fixed issue 07314: Print answers displays custom html code in answers column Affected Issues
07314
mod - application/controllers/PrintanswersController.php Diff File

Issue History

Date Modified Username Field Change
2013-02-20 11:05 user10811 New Issue
2013-02-20 11:05 user10811 File Added: html_2013-02-18.gif
2013-02-20 17:10 c_schmitz Note Added: 24180
2013-02-20 17:10 c_schmitz Assigned To => c_schmitz
2013-02-20 17:10 c_schmitz Status new => feedback
2013-02-20 17:39 user10811 File Added: limesurvey_question_17.lsq
2013-02-20 17:41 user10811 Note Added: 24182
2013-02-20 17:41 user10811 Status feedback => assigned
2013-02-20 23:41 c_schmitz Changeset attached => LimeSurvey master a7f29144
2013-02-20 23:41 c_schmitz Note Added: 24184
2013-02-20 23:41 c_schmitz Resolution open => fixed
2013-02-20 23:59 c_schmitz Status assigned => resolved
2013-02-20 23:59 c_schmitz Fixed in Version => 2.00+
2013-02-21 14:13 user10811 Note Added: 24191
2013-02-21 14:14 user10811 Note Edited: 24191
2013-02-26 20:03 c_schmitz Note Added: 24420
2013-02-26 20:03 c_schmitz Status resolved => closed
2013-03-02 16:34 c_schmitz Changeset attached => LimeSurvey 2.1 d2ccf58f
2013-03-02 16:34 c_schmitz Note Added: 24479