View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
12222Bug reportsSurvey participants (Tokens)public2020-03-13 18:47
Reporterpmonstad Assigned To 
PrioritynoneSeveritypartial_block 
Status closedResolutionopen 
Product Version2.64.x 
Summary12222: Bad limereplacement fiels for token attribute in admin notification
Description

I have added an extra attribute field in Token Management. I have inserted this attribute in mail template for the survey (administrator notify). The attribute data is not shown in the mail. What I see is Denne er fra: ATTRIBUTE_1

TagsNo tags attached.
Attached Files
Bug heat8
Complete LimeSurvey version number (& build)2.64.1+170310
I will donate to the project if issue is resolvedNo
Browserall
Database type & versionall
Server OS (if known)all
Webserver software & version (if known)all
PHP Versionall

Users monitoring this issue

There are no users monitoring this issue.

Activities

mfavetti

mfavetti

2017-03-23 23:47

developer   ~43315

I think you need {TOKEN:ATTRIBUTE_1}

mfavetti

mfavetti

2017-03-23 23:51

developer   ~43316

I see that if you add the attribute via the button in the html editor, then it only puts {ATTRIBUTE_1}. So either {ATTRIBUTE_1} needs to function the same as {TOKEN:ATTRIBUTE_1} or the button needs to insert the one with the token prefix.

mfavetti

mfavetti

2017-03-23 23:53

developer   ~43317

Also pmonstad, sorry if I sent you some emails while I was testing before I realized I needed to change it :o

pmonstad

pmonstad

2017-03-24 08:26

updater   ~43322

Thanks! I inserted TOKEN:ATTRIBUTE_1 and it now shows the attribute correctly. I guess this is a bug? When I Insert A Placeholder from the HTML editor (mail templates) the TOKEN: is not inserted.

DenisChenu

DenisChenu

2017-03-24 09:21

developer   ~43323

About TOKEN: needed : It's not a bug : maybe a doc issue but not a bug.
IF email HTML editor don't use it : it's an HTML editor issue (anbd then : better rename the bug title).

When sending invitation/reminder : Survey is not here.

BUT : when sending confirmation and admin notification : survey is here. And in survey : then TOKEN:ATTRIBUTE_1 mean the token value of attribute 1, and ATTRIBUTE_1 mean the subquestion 1 of ATTRIBUTE question.

Manual is clear https://manual.limesurvey.org/Survey_participants#Email_placeholders
<quote>

pmonstad

pmonstad

2017-03-24 14:43

updater   ~43333

Even if this is not a bug it is not very obvious for a user to know how to use am extra attribute token placeholder. It exists is the placeholder list and most of us will expect it to work without adding the TOKEN: manually.

DenisChenu

DenisChenu

2017-03-24 14:55

developer   ~43334

But it CAN NOT work , and it never work.

If HTML editor lime replacement field don't add TOKEN: it's a bug, else it's not a bug.

You can create a FIRTSNAME question, if we force FIRTSNAME to be TOKEN:FIRTSNAME ! this is a bug.

mfavetti

mfavetti

2017-03-24 18:57

developer   ~43338

Ok, so if I understand correctly:

For Confirmation/Basic admin notification/Detailed admin notification, token attributes must be in the format TOKEN:ATTRIBUTE_# because the survey data is also present.

When editing Invitation/Reminder, there is no survey data, and token attributes must be in the format ATTRIBUTE_#.

So the only bug here is that the HTML editor doesn't account for the two cases above.

pmonstad

pmonstad

2017-03-24 19:18

updater   ~43340

If this is the case it should be possible to add the prefix TOKEN: if editing template for admin notification? If this is not possible the attribute fields should not be shown in the placeholders list. Then an advanced user can read the documentation how to add it manually. That is a better solution than providing the attribute fields in the list and showing wrong results in the mail. This will be counted as a bug by most users...

DenisChenu

DenisChenu

2017-03-25 10:40

developer   ~43343

Hi,

I just test popup HTML editor in admin_notification fiorstname is OK (use {TOKEN:FIRSTNAME} but attribute is not OK (use {ATTRIBUTE_1}) then issue confirmed

c_schmitz

c_schmitz

2020-03-13 18:47

administrator   ~56505

This version of LimeSurvey is not longer supported. Please check so that the issue is fixed in a more recent version of LimeSurvey. If it's not, please reopen this bug report. Thank you.

Issue History

Date Modified Username Field Change
2017-03-23 10:05 pmonstad New Issue
2017-03-23 10:05 pmonstad File Added: survey_archive_593937.lsa
2017-03-23 23:47 mfavetti Note Added: 43315
2017-03-23 23:51 mfavetti Note Added: 43316
2017-03-23 23:53 mfavetti Note Added: 43317
2017-03-24 08:26 pmonstad Note Added: 43322
2017-03-24 09:21 DenisChenu Note Added: 43323
2017-03-24 14:43 pmonstad Note Added: 43333
2017-03-24 14:55 DenisChenu Note Added: 43334
2017-03-24 18:57 mfavetti Note Added: 43338
2017-03-24 19:18 pmonstad Note Added: 43340
2017-03-25 10:40 DenisChenu Note Added: 43343
2017-03-25 10:41 DenisChenu Summary Attribute field not working in mail => Bad limereplacement fiels for token attribute in admin notification
2017-03-25 10:41 DenisChenu Status new => confirmed
2020-03-13 18:47 c_schmitz Note Added: 56505
2020-03-13 18:47 c_schmitz Status confirmed => closed