View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
06075Bug reportsSurvey participants (Tokens)public2012-05-17 10:27
Reporteruser19777Assigned ToTMSWhite  
PriorityhighSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.92+ 
Fixed in Version1.92+ 
Summary06075: Content of previous answer is not replaced, instead placeholder of selected answer is shown: eg. {TOKEN:ATTRIBUTE_2}
Description

Hello,

I have created a Token with two custom fields "User1" and "User2".
My test token "test" has "TestUser1" and "TestUser2".

My first question is to select one of the custom User.
I select e.g. "TestUser2".

My second question is "How old is {INSERTANS:13597X12X1121}?
This should show "How old is TestUser2".
Instead "How old is {TOKEN:ATTRIBUTE_2}?" is shown.

Steps To Reproduce

I will attach the survey file.

Additional Information

The problem occured with one update, but I cannot say, when.
The first time I recognized it was 19.April.

TagsNo tags attached.
Attached Files
Bug heat6
Complete LimeSurvey version number (& build)120501
I will donate to the project if issue is resolvedNo
BrowserFirefox
Database type & versionMySQL 5.0.51a-24.26.200910141858
Server OS (if known)Linux
Webserver software & version (if known)Apache/2.2.9 (Univention) PHP/5.2.6-1.150.201012221103 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
PHP VersionphpMyAdmin - 2.11.8.1deb5+lenny7

Relationships

related to 06102 closedTMSWhite "Print your answers" shows EM syntax errors 

Users monitoring this issue

There are no users monitoring this issue.

Activities

TMSWhite

TMSWhite

2012-05-09 16:54

reporter   ~18641

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

user19777

2012-05-09 17:32

  ~18642

Thank you very much for this great and very fast fix!

TMSWhite

TMSWhite

2012-05-09 17:55

reporter   ~18643

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8383

TMSWhite

TMSWhite

2012-05-09 18:11

reporter   ~18644

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8384

TMSWhite

TMSWhite

2012-05-16 19:23

reporter   ~18791

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

TMSWhite

TMSWhite

2012-05-16 19:28

reporter   ~18793

Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=8496

c_schmitz

c_schmitz

2012-05-17 10:27

administrator   ~18811

New 1.92+ version released.

Related Changesets

LimeSurvey: master 910760ea

2012-05-09 07:52:09

TMSWhite

Details Diff
Fixed issue 06075: Content of previous answer is not replaced, instead placeholder of selected answer is shown: eg. {TOKEN:ATTRIBUTE_2} Affected Issues
06075
mod - classes/expressions/LimeExpressionManager.php Diff File

LimeSurvey: Yii 1415efd0

2012-05-09 08:53:56

TMSWhite

Details Diff
Fixed issue 06075: Content of previous answer is not replaced, instead placeholder of selected answer is shown: eg. {TOKEN:ATTRIBUTE_2} Affected Issues
06075
mod - application/helpers/expressions/em_manager_helper.php Diff File

LimeSurvey: Yii edddf31d

2012-05-09 09:10:29

TMSWhite

Details Diff
Fixed issue 06075: Content of previous answer is not replaced, instead placeholder of selected answer is shown: eg. {TOKEN:ATTRIBUTE_2}
Dev exception when trying to replace token value
Affected Issues
06075
mod - application/helpers/expressions/em_manager_helper.php Diff File

LimeSurvey: master c01f90b5

2012-05-16 10:22:49

TMSWhite

Details Diff
Fixed issue 06102: "Print your answers" shows EM syntax errors
Dev had to fix issue 06075 in a different way to solve this issue: Needed to do 3-deep recursive replacement instead of 2-deep recursion.
Affected Issues
06075, 06102
mod - classes/expressions/LimeExpressionManager.php Diff File
mod - replacements.php Diff File

LimeSurvey: Yii 7092bfda

2012-05-16 10:27:50

TMSWhite

Details Diff
Fixed issue 06102: "Print your answers" shows EM syntax errors
Dev had to fix issue 06075 in a different way to solve this issue: Needed to do 3-deep recursive replacement instead of 2-deep recursion.
Affected Issues
06075, 06102
mod - application/helpers/expressions/em_manager_helper.php Diff File
mod - application/helpers/replacements_helper.php Diff File

Issue History

Date Modified Username Field Change
2012-05-09 08:59 user19777 New Issue
2012-05-09 08:59 user19777 File Added: limesurvey_survey_13597.lss
2012-05-09 08:59 user19777 Issue Monitored: user19777
2012-05-09 16:54 TMSWhite Changeset attached => LimeSurvey master 910760ea
2012-05-09 16:54 TMSWhite Note Added: 18641
2012-05-09 16:54 TMSWhite Assigned To => TMSWhite
2012-05-09 16:54 TMSWhite Resolution open => fixed
2012-05-09 16:54 TMSWhite Status new => resolved
2012-05-09 16:54 TMSWhite Fixed in Version => 1.92+
2012-05-09 17:32 user19777 Note Added: 18642
2012-05-09 17:55 TMSWhite Changeset attached => LimeSurvey Yii 1415efd0
2012-05-09 17:55 TMSWhite Note Added: 18643
2012-05-09 18:11 TMSWhite Changeset attached => LimeSurvey Yii edddf31d
2012-05-09 18:11 TMSWhite Note Added: 18644
2012-05-16 19:21 TMSWhite Relationship added related to 06102
2012-05-16 19:23 TMSWhite Changeset attached => LimeSurvey master c01f90b5
2012-05-16 19:23 TMSWhite Note Added: 18791
2012-05-16 19:28 TMSWhite Changeset attached => LimeSurvey Yii 7092bfda
2012-05-16 19:28 TMSWhite Note Added: 18793
2012-05-17 10:27 c_schmitz Note Added: 18811
2012-05-17 10:27 c_schmitz Status resolved => closed
2016-12-08 10:39 c_schmitz Category Tokens => Survey participants (Tokens)