View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05892Bug reportsSurvey editingpublic2012-03-11 16:31
ReporterFlasher Assigned ToTMSWhite  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.92 
Fixed in Version1.92+ 
Summary05892: With question type "Short free text" and "display row" set, the text field is shown with some code
Description

If you use question type "Short free text" and set some value in "display row" the text field is prefilled with the text:

"Answer</label>rows="1" cols="40" maxlength='10' onchange="checkconditions(this.value, this.name, this.type);" >"

Although there is another question type for multiple line textfields, this should be fixed, because some could incidently use that option.

I didn't check what happens when using such a question field. As it might seem that the prefilled text is important code, I guess the survey will break.

Steps To Reproduce

Create a question with type "Short free text" and fill in something in "display row". Save it and show the perview. It should appear text similar to this one depending on language and setting in the "display row" field:

"Answer</label>rows="1" cols="40" maxlength='10' onchange="checkconditions(this.value, this.name, this.type);" >"

TagsNo tags attached.
Attached Files
ScreenShot.png (21,996 bytes)   
ScreenShot.png (21,996 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)120303
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionMySQL 5.1.39
Server OS (if known)Linux
Webserver software & version (if known)Don't know
PHP Version5.2.17

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-03-09 15:49

reporter   ~17801

I can take this one - I tracked it down already

c_schmitz

c_schmitz

2012-03-09 15:57

administrator   ~17803

Are you doing it? Or want Shnoulle do it?

TMSWhite

TMSWhite

2012-03-09 16:01

reporter   ~17804

Fixed with commit https://github.com/LimeSurvey/LimeSurvey/commit/8bd079fb8422950990ac0a368d2c2e5a9d356bc1

c_schmitz

c_schmitz

2012-03-11 16:31

administrator   ~17826

1.92+ Build 120211 released

Related Changesets

LimeSurvey: master 8bd079fb

2012-03-09 07:02:38

TMSWhite

Details Diff
Fixed issue 05892: With question type "Short free text" and "display row" set, the text field is shown with some code Affected Issues
05892
mod - qanda.php Diff File

Issue History

Date Modified Username Field Change
2012-03-09 13:57 Flasher New Issue
2012-03-09 13:57 Flasher File Added: ScreenShot.png
2012-03-09 15:44 c_schmitz Assigned To => user2862
2012-03-09 15:44 c_schmitz Status new => assigned
2012-03-09 15:49 TMSWhite Note Added: 17801
2012-03-09 15:57 c_schmitz Assigned To user2862 => TMSWhite
2012-03-09 15:57 c_schmitz Note Added: 17803
2012-03-09 16:01 TMSWhite Note Added: 17804
2012-03-09 16:01 TMSWhite Status assigned => resolved
2012-03-09 16:01 TMSWhite Fixed in Version => 1.92+
2012-03-09 16:01 TMSWhite Resolution open => fixed
2012-03-09 16:10 TMSWhite Changeset attached => Import 2012-03-09 13:30:34 master 8bd079fb
2012-03-11 16:31 c_schmitz Note Added: 17826
2012-03-11 16:31 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing