View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
05307Bug reportsSurvey editingpublic2011-06-29 13:47
Reporteruser14659Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionno change required 
Product Version1.91+ 
Summary05307: "Quick add..." scrambles input when longish and html formatted
Description

There is a problem with the "Quick add..." feature for arrays in limesurvey. If I try to paste some long questions in the quick-add window, it does not get parsed well.

If pasted in the "Edit Subquestions" there is nor problem.

BUT: when I take the sourcecode of this question and paste it into the "Quick add" window, it gets scrambled as soon as I try to save it and it does not appear the way it should.

Steps To Reproduce
  • Make a new question,
  • make it an array,
  • "Edit subquestions for this Question"
  • paste some longish text, possibly html formatted in the list and
  • see that it works with the "Edit subquestions" form
  • hit the "Quick add.." button
  • paste the longish text here as well and
  • it does not work. The line is not added well, the Code of the subquestion gets scramble as well as the text.

You might want to use the following longish text to try it:

<p style="text-align: left; "> There is a problem with the "Quick add..." feature for arrays in limesurvey. If I try to paste some long questions, in the quick-add window, it does not get parsed well.

<p style="text-align: left; "> This is quite a long question that should appear in an array.
When typed in the "Editing [Subquestion:]" window it's no problem at all to have it a bit longish, even if it requires more space than a single line.

<p style="text-align: left; "> A new line also does not really matter, neither does text that is formatted dfferently.

<p style="margin-left: 80px; text-align: left; "> BUT: when I take the sourcecode of this question and paste it into the "Quick add" window, it gets scrambled as soon as I try to save it and it does not appear the way it should.

<p style="text-align: left; "> So all likely something goes wrong with the "quick add ... feature"

It works in the list but NOT in Quick add.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)10315
I will donate to the project if issue is resolvedNo
Browseropera, firefox
Database type & versionMySQL Version 5.0.51
Server OS (if known)ubuntu linux
Webserver software & version (if known)Apache version 2.2.8
PHP VersionPHP Version 5.2.4-2ubuntu5.17
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2011-06-28 18:20

administrator   ~15583

No bug. As the help text of the quick add states, a semikolon will separate the code from the question text.

user14659

2011-06-29 12:40

  ~15593

Please have a look at test survey ID:15483 in the demo, where you can see what I mean.

Adding rather long html formatted subquestions failes, no matter what I try (comma, semikolon, tab...)

thanks

best regards
claudio

c_schmitz

c_schmitz

2011-06-29 13:47

administrator   ~15594

Your HTML contains a semikolon and tabs, so the part before the semikolon or tab will tried to be used as question code (as the help text of the quick add textarea states!). Do not reopen this issue, please.

If you have more questions use the forums.

Issue History

Date Modified Username Field Change
2011-06-27 22:58 user14659 New Issue
2011-06-28 18:20 c_schmitz Note Added: 15583
2011-06-28 18:20 c_schmitz Status new => closed
2011-06-28 18:20 c_schmitz Assigned To => c_schmitz
2011-06-28 18:20 c_schmitz Resolution open => no change required
2011-06-29 12:40 user14659 Note Added: 15593
2011-06-29 12:40 user14659 Status closed => feedback
2011-06-29 12:40 user14659 Resolution no change required => reopened
2011-06-29 13:47 c_schmitz Note Added: 15594
2011-06-29 13:47 c_schmitz Status feedback => closed
2011-06-29 13:47 c_schmitz Resolution reopened => no change required
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing