View Issue Details

This issue affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
08218Bug reportsSurvey participants (Tokens)public2013-10-07 22:00
Reportermrasquinho Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Product Version2.00+ 
Summary08218: Not defined variable
Description

When we import a .lsg with some questions which are pushing default answers from tokens, instead of an error message inside the textbox, we get an html code.

Steps To Reproduce

1 - Create a question
2 - Assign a default answer from some token
3 - Export the question, or group.
4 - Import that question to another survey without that token
5 - Profit!

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)Build 130924
I will donate to the project if issue is resolvedNo
BrowserChrome
Database type & version?
Server OS (if known)Windows Server 2008 R2 Enterprise Edition Service Pack 1
Webserver software & version (if known)?
PHP Version5.4.14
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2013-10-02 19:30

developer   ~26485

Can you upload such a lsg file (tell us the language of the survey before please).

mrasquinho

mrasquinho

2013-10-03 10:32

reporter   ~26494

Last edited: 2013-10-03 10:33

Here it is a lsq file with one question. It has the answer by default with Token Attribute 1.

Notice that if you haven't defined any attribute, instead of a blank answer (or an error 'Not Defined Attribute', but better a blank space), we get an html code inside of the answer box.

Edit: Language of this lsq is Portuguese, but it happens with other languages too.

c_schmitz

c_schmitz

2013-10-07 22:00

administrator   ~26607

Expression manager points out an error by using HTML around the offending element. There is no way for EM to tell if the element is used within a textbox or not as the replacement can also happen on-the-fly on-page while questions are answered on the same page and parsing the whole DOM HTML tree on every page just because the admin did not configure things right is a bit over the top.

Issue History

Date Modified Username Field Change
2013-10-02 11:02 mrasquinho New Issue
2013-10-02 18:36 mrasquinho Issue Monitored: mrasquinho
2013-10-02 18:36 mrasquinho Issue End Monitor: mrasquinho
2013-10-02 19:30 DenisChenu Note Added: 26485
2013-10-03 01:55 c_schmitz Assigned To => c_schmitz
2013-10-03 01:55 c_schmitz Status new => feedback
2013-10-03 10:29 mrasquinho Issue Monitored: mrasquinho
2013-10-03 10:29 mrasquinho Issue End Monitor: mrasquinho
2013-10-03 10:31 mrasquinho File Added: limesurvey_question_249.lsq
2013-10-03 10:32 mrasquinho Note Added: 26494
2013-10-03 10:32 mrasquinho Status feedback => assigned
2013-10-03 10:33 mrasquinho Note Edited: 26494
2013-10-07 22:00 c_schmitz Note Added: 26607
2013-10-07 22:00 c_schmitz Status assigned => closed
2013-10-07 22:00 c_schmitz Resolution open => won't fix
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)