View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08683Bug reportsOtherpublic2018-11-27 10:06
Reporterfairsay Assigned ToDenisChenu  
PrioritylowSeverityminor 
Status closedResolutionfixed 
Product Version2.05+ 
Fixed in Version2.05+ 
Summary08683: Unique custom token values fail to merge in invite/reminder emails
Description

I have a custom token field that has a unique id for each row. When I try and send an invite email with a value like {TOKEN:ATTRIBUTE_14} all emails being sent seem to have the same (first) token value.

Anyone else find this problem or able to replicate it?

Steps To Reproduce

1) Add custom attribute to survey token table
2) Add several rows
3) Add a unique value to each row's custom attribute
4) Set up an invite email that included the custom attribute
5) Send the invite email and compare if the resulting emails have the same or different values for the invite email where the merge should have occured.

Additional Information

My token table is 2300 rows, but I suspect that isn't an issue.

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)140204
I will donate to the project if issue is resolvedNo
BrowserSafari
Database type & versionMysql 5.0
Server OS (if known)Linux
Webserver software & version (if known)Apache
PHP Version5.3

Relationships

related to 14287 closedDenisChenu Feature requests cosistent use of ATTRIBUTE_1 OR TOKEN:ATTRIBUTE_1 in email-template and text for survey. 
related to 14288 closedDenisChenu Bug reports TOKEN:ATTRIBUTE_INT: No output in email-template AND no Error in validate expression 

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2014-02-12 10:25

administrator   ~28640

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

c_schmitz

c_schmitz

2014-02-12 10:26

administrator   ~28641

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

DenisChenu

DenisChenu

2014-02-12 19:36

developer   ~28664

Last edited: 2014-02-12 20:03

Can you provide a lda file for testing ?

Tested with {ATTRIBUTE_1} and 2 emails seems to work ?
I try with more than 10 attribute

Same think with {ATTRIBUTE_14} : can not reproduce !

DenisChenu

DenisChenu

2014-02-13 08:20

developer   ~28703

@Carsten : This happen only if number of token are up than Email batch size ?
Any other condition ?

DenisChenu

DenisChenu

2014-02-13 19:06

developer   ~28716

Sorry Carsten, no problem to fix if i understand the problem an can reproduce.

Something i don't understand ?

c_schmitz

c_schmitz

2014-02-16 16:47

administrator   ~28761

Denis, it does not seem to work if the survey is set to us anonymized responses, where it should work for invitation/reminder

DenisChenu

DenisChenu

2014-02-16 17:06

developer   ~28763

Last edited: 2014-02-16 17:13

Ah !! OK :)

I don't set my survey to anonymous when testing.

PS: not {TOKEN:ATTRIBUTE_1} but {ATTRIBUTE_1} : need to fix the documentation here.

DenisChenu

DenisChenu

2014-02-16 18:03

developer   ~28766

Documentation : http://manual.limesurvey.org/Tokens#Email_placeholders
Using {ATTRIBUTE_1} are OK in reminder/inviation and confirmation.

DenisChenu

DenisChenu

2014-02-16 18:15

developer   ~28767

Have a bug:
if survey admin launch a test survey, with a not anonymous survey : {TOKEN:ATTRIBUTE_1} are replaced by actual survey token information, and same for {TOKEN:FIRSTNAME}.

2 solution:

  • Reset the session token starting the email send,
  • or direct replace {TOKEN:...} by {...}
DenisChenu

DenisChenu

2014-02-24 17:21

developer   ~28897

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

c_schmitz

c_schmitz

2014-02-26 13:32

administrator   ~28937

2.05+ Build 140226 released

Related Changesets

LimeSurvey: master 7ce499d2

2014-02-12 09:26:10

c_schmitz

Details Diff
Fixed issue 08683: Unique custom token values fail to merge in invite/reminder emails
Dev Partial fix
Affected Issues
08683
mod - application/controllers/admin/tokens.php Diff File

LimeSurvey: master b383680e

2014-02-12 09:26:51

c_schmitz

Details Diff
Fixed issue 08683: Unique custom token values fail to merge in invite/reminder emails
Dev Partial fix
Affected Issues
08683
mod - application/controllers/admin/tokens.php Diff File

LimeSurvey: master 55f8b483

2014-02-24 16:21:45

DenisChenu

Details Diff
Fixed issue 08683: Unique custom token values fail to merge in invite/reminder emails
Dev: replace {TOKEN:ATTRIBUTE} by {ATTRIBUTE} else take 'actual' token information from $_SESSION
Affected Issues
08683
mod - application/controllers/RegisterController.php Diff File
mod - application/controllers/admin/tokens.php Diff File

Issue History

Date Modified Username Field Change
2014-02-07 15:09 fairsay New Issue
2014-02-09 00:46 c_schmitz Assigned To => c_schmitz
2014-02-09 00:46 c_schmitz Status new => assigned
2014-02-12 10:25 c_schmitz Changeset attached => LimeSurvey master 7ce499d2
2014-02-12 10:25 c_schmitz Note Added: 28640
2014-02-12 10:25 c_schmitz Resolution open => fixed
2014-02-12 10:26 c_schmitz Changeset attached => LimeSurvey master b383680e
2014-02-12 10:26 c_schmitz Note Added: 28641
2014-02-12 12:01 DenisChenu Assigned To c_schmitz => DenisChenu
2014-02-12 19:36 DenisChenu Note Added: 28664
2014-02-12 20:02 DenisChenu Note Edited: 28664
2014-02-12 20:03 DenisChenu Note Edited: 28664
2014-02-13 08:20 DenisChenu Note Added: 28703
2014-02-13 19:05 DenisChenu Assigned To DenisChenu => c_schmitz
2014-02-13 19:06 DenisChenu Note Added: 28716
2014-02-16 16:47 c_schmitz Note Added: 28761
2014-02-16 16:48 c_schmitz Assigned To c_schmitz => DenisChenu
2014-02-16 17:06 DenisChenu Note Added: 28763
2014-02-16 17:13 DenisChenu Note Edited: 28763
2014-02-16 18:03 DenisChenu Note Added: 28766
2014-02-16 18:03 DenisChenu Status assigned => resolved
2014-02-16 18:03 DenisChenu Fixed in Version => 2.05+
2014-02-16 18:03 DenisChenu Resolution fixed => no change required
2014-02-16 18:03 DenisChenu Assigned To DenisChenu => c_schmitz
2014-02-16 18:15 DenisChenu Note Added: 28767
2014-02-16 18:15 DenisChenu Assigned To c_schmitz => DenisChenu
2014-02-16 18:15 DenisChenu Status resolved => new
2014-02-16 18:23 DenisChenu Status new => assigned
2014-02-16 18:34 DenisChenu Priority normal => low
2014-02-16 18:34 DenisChenu Resolution no change required => open
2014-02-24 17:21 DenisChenu Changeset attached => LimeSurvey master 55f8b483
2014-02-24 17:21 DenisChenu Note Added: 28897
2014-02-24 17:21 DenisChenu Resolution open => fixed
2014-02-24 17:23 DenisChenu Status assigned => resolved
2014-02-26 13:32 c_schmitz Note Added: 28937
2014-02-26 13:32 c_schmitz Status resolved => closed
2018-11-27 09:43 DenisChenu Relationship added related to 14287
2018-11-27 10:06 DenisChenu Relationship added related to 14288