View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 05619 | Bug reports | Survey editing | public | 2011-12-01 18:06 | 2012-01-30 18:41 |
| Reporter | atiut | Assigned To | lemeur | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91+ | ||||
| Fixed in Version | 1.92RC3 | ||||
| Summary | 05619: placeholders cannot be used in the link editor (mailto) | ||||
| Description | you can apparently insert a placeholder in the mailto link (mail body) but it will fail to work | ||||
| Steps To Reproduce | 1.set the survey to use the inline html editor (have not checked with other settings) | ||||
| Additional Information | in the non-html view the link will look just fine, as the computer re-interprets back the characters to {}. But the placeholders are nevertheless broken and unusable. | ||||
| Tags | No tags attached. | ||||
| Attached Files | bugtracker_link editor.lss.htm (18,546 bytes)
<?xml version="1.0" encoding="UTF-8"?>
<document>
<LimeSurveyDocType>Survey</LimeSurveyDocType>
<DBVersion>146</DBVersion>
<languages>
<language>ro</language>
</languages>
<groups>
<fields>
<fieldname>gid</fieldname>
<fieldname>sid</fieldname>
<fieldname>group_name</fieldname>
<fieldname>group_order</fieldname>
<fieldname>description</fieldname>
<fieldname>language</fieldname>
</fields>
<rows>
<row>
<gid><![CDATA[356]]></gid>
<sid><![CDATA[58376]]></sid>
<group_name><![CDATA[link editor]]></group_name>
<group_order><![CDATA[0]]></group_order>
<description><![CDATA[<br />
]]></description>
<language><![CDATA[ro]]></language>
</row>
</rows>
</groups>
<questions>
<fields>
<fieldname>qid</fieldname>
<fieldname>parent_qid</fieldname>
<fieldname>sid</fieldname>
<fieldname>gid</fieldname>
<fieldname>type</fieldname>
<fieldname>title</fieldname>
<fieldname>question</fieldname>
<fieldname>preg</fieldname>
<fieldname>help</fieldname>
<fieldname>other</fieldname>
<fieldname>mandatory</fieldname>
<fieldname>question_order</fieldname>
<fieldname>language</fieldname>
<fieldname>scale_id</fieldname>
<fieldname>same_default</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[18779]]></qid>
<parent_qid><![CDATA[0]]></parent_qid>
<sid><![CDATA[58376]]></sid>
<gid><![CDATA[356]]></gid>
<type><![CDATA[T]]></type>
<title><![CDATA[edit a link]]></title>
<question><![CDATA[<p>
The link below was created using {placeholder1}, {placeholder2} and {placeholder3}</p>
<p>
You can see thta checking out the link in the link editor.</p>
<p>
However, placeholder 2 and 3 appear broken in the source view.</p>
<p>
</p>
<a href="mailto:{placeholder1}?subject=%7Bplaceholder2%7D&body=%7Bplaceholder3%7D">placeholder1</a>
<p>
</p>
]]></question>
<preg><![CDATA[]]></preg>
<help><![CDATA[<br />
]]></help>
<other><![CDATA[N]]></other>
<mandatory><![CDATA[N]]></mandatory>
<question_order><![CDATA[0]]></question_order>
<language><![CDATA[ro]]></language>
<scale_id><![CDATA[0]]></scale_id>
<same_default><![CDATA[0]]></same_default>
</row>
</rows>
</questions>
<question_attributes>
<fields>
<fieldname>qid</fieldname>
<fieldname>attribute</fieldname>
<fieldname>value</fieldname>
</fields>
<rows>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[display_rows]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[hidden]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[maximum_chars]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[page_break]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[random_group]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[text_input_width]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_action]]></attribute>
<value><![CDATA[1]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_countdown_message]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_disable_next]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_disable_prev]]></attribute>
<value><![CDATA[0]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_message]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_message_delay]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_message_style]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_timer_style]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_2]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_2_display_time]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_2_message]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_2_style]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_display_time]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_message]]></attribute>
<value><![CDATA[]]></value>
</row>
<row>
<qid><![CDATA[18779]]></qid>
<attribute><![CDATA[time_limit_warning_style]]></attribute>
<value><![CDATA[]]></value>
</row>
</rows>
</question_attributes>
<surveys>
<fields>
<fieldname>sid</fieldname>
<fieldname>admin</fieldname>
<fieldname>expires</fieldname>
<fieldname>startdate</fieldname>
<fieldname>adminemail</fieldname>
<fieldname>anonymized</fieldname>
<fieldname>faxto</fieldname>
<fieldname>format</fieldname>
<fieldname>savetimings</fieldname>
<fieldname>template</fieldname>
<fieldname>language</fieldname>
<fieldname>additional_languages</fieldname>
<fieldname>datestamp</fieldname>
<fieldname>usecookie</fieldname>
<fieldname>allowregister</fieldname>
<fieldname>allowsave</fieldname>
<fieldname>autonumber_start</fieldname>
<fieldname>autoredirect</fieldname>
<fieldname>allowprev</fieldname>
<fieldname>printanswers</fieldname>
<fieldname>ipaddr</fieldname>
<fieldname>refurl</fieldname>
<fieldname>publicstatistics</fieldname>
<fieldname>publicgraphs</fieldname>
<fieldname>listpublic</fieldname>
<fieldname>htmlemail</fieldname>
<fieldname>tokenanswerspersistence</fieldname>
<fieldname>assessments</fieldname>
<fieldname>usecaptcha</fieldname>
<fieldname>usetokens</fieldname>
<fieldname>bounce_email</fieldname>
<fieldname>attributedescriptions</fieldname>
<fieldname>emailresponseto</fieldname>
<fieldname>emailnotificationto</fieldname>
<fieldname>tokenlength</fieldname>
<fieldname>showXquestions</fieldname>
<fieldname>showgroupinfo</fieldname>
<fieldname>shownoanswer</fieldname>
<fieldname>showqnumcode</fieldname>
<fieldname>bouncetime</fieldname>
<fieldname>bounceprocessing</fieldname>
<fieldname>bounceaccounttype</fieldname>
<fieldname>bounceaccounthost</fieldname>
<fieldname>bounceaccountpass</fieldname>
<fieldname>bounceaccountencryption</fieldname>
<fieldname>bounceaccountuser</fieldname>
<fieldname>showwelcome</fieldname>
<fieldname>showprogress</fieldname>
<fieldname>allowjumps</fieldname>
<fieldname>navigationdelay</fieldname>
<fieldname>nokeyboard</fieldname>
<fieldname>alloweditaftercompletion</fieldname>
</fields>
<rows>
<row>
<sid><![CDATA[58376]]></sid>
<admin><![CDATA[Your Name]]></admin>
<expires><![CDATA[]]></expires>
<startdate><![CDATA[]]></startdate>
<adminemail><![CDATA[your-email@example.net]]></adminemail>
<anonymized><![CDATA[N]]></anonymized>
<faxto><![CDATA[]]></faxto>
<format><![CDATA[G]]></format>
<savetimings><![CDATA[N]]></savetimings>
<template><![CDATA[PROFIL_site]]></template>
<language><![CDATA[ro]]></language>
<additional_languages><![CDATA[]]></additional_languages>
<datestamp><![CDATA[N]]></datestamp>
<usecookie><![CDATA[N]]></usecookie>
<allowregister><![CDATA[N]]></allowregister>
<allowsave><![CDATA[Y]]></allowsave>
<autonumber_start><![CDATA[0]]></autonumber_start>
<autoredirect><![CDATA[N]]></autoredirect>
<allowprev><![CDATA[N]]></allowprev>
<printanswers><![CDATA[N]]></printanswers>
<ipaddr><![CDATA[N]]></ipaddr>
<refurl><![CDATA[N]]></refurl>
<publicstatistics><![CDATA[N]]></publicstatistics>
<publicgraphs><![CDATA[N]]></publicgraphs>
<listpublic><![CDATA[Y]]></listpublic>
<htmlemail><![CDATA[Y]]></htmlemail>
<tokenanswerspersistence><![CDATA[N]]></tokenanswerspersistence>
<assessments><![CDATA[N]]></assessments>
<usecaptcha><![CDATA[D]]></usecaptcha>
<usetokens><![CDATA[N]]></usetokens>
<bounce_email><![CDATA[your-email@example.net]]></bounce_email>
<attributedescriptions><![CDATA[]]></attributedescriptions>
<emailresponseto><![CDATA[]]></emailresponseto>
<emailnotificationto><![CDATA[]]></emailnotificationto>
<tokenlength><![CDATA[15]]></tokenlength>
<showXquestions><![CDATA[Y]]></showXquestions>
<showgroupinfo><![CDATA[B]]></showgroupinfo>
<shownoanswer><![CDATA[N]]></shownoanswer>
<showqnumcode><![CDATA[X]]></showqnumcode>
<bouncetime><![CDATA[]]></bouncetime>
<bounceprocessing><![CDATA[N]]></bounceprocessing>
<bounceaccounttype><![CDATA[]]></bounceaccounttype>
<bounceaccounthost><![CDATA[]]></bounceaccounthost>
<bounceaccountpass><![CDATA[]]></bounceaccountpass>
<bounceaccountencryption><![CDATA[]]></bounceaccountencryption>
<bounceaccountuser><![CDATA[]]></bounceaccountuser>
<showwelcome><![CDATA[Y]]></showwelcome>
<showprogress><![CDATA[Y]]></showprogress>
<allowjumps><![CDATA[N]]></allowjumps>
<navigationdelay><![CDATA[0]]></navigationdelay>
<nokeyboard><![CDATA[N]]></nokeyboard>
<alloweditaftercompletion><![CDATA[N]]></alloweditaftercompletion>
</row>
</rows>
</surveys>
<surveys_languagesettings>
<fields>
<fieldname>surveyls_survey_id</fieldname>
<fieldname>surveyls_language</fieldname>
<fieldname>surveyls_title</fieldname>
<fieldname>surveyls_description</fieldname>
<fieldname>surveyls_welcometext</fieldname>
<fieldname>surveyls_endtext</fieldname>
<fieldname>surveyls_url</fieldname>
<fieldname>surveyls_urldescription</fieldname>
<fieldname>surveyls_email_invite_subj</fieldname>
<fieldname>surveyls_email_invite</fieldname>
<fieldname>surveyls_email_remind_subj</fieldname>
<fieldname>surveyls_email_remind</fieldname>
<fieldname>surveyls_email_register_subj</fieldname>
<fieldname>surveyls_email_register</fieldname>
<fieldname>surveyls_email_confirm_subj</fieldname>
<fieldname>surveyls_email_confirm</fieldname>
<fieldname>surveyls_dateformat</fieldname>
<fieldname>email_admin_notification_subj</fieldname>
<fieldname>email_admin_notification</fieldname>
<fieldname>email_admin_responses_subj</fieldname>
<fieldname>email_admin_responses</fieldname>
<fieldname>surveyls_numberformat</fieldname>
</fields>
<rows>
<row>
<surveyls_survey_id><![CDATA[58376]]></surveyls_survey_id>
<surveyls_language><![CDATA[ro]]></surveyls_language>
<surveyls_title><![CDATA[bugtracker]]></surveyls_title>
<surveyls_description><![CDATA[]]></surveyls_description>
<surveyls_welcometext><![CDATA[<br />
]]></surveyls_welcometext>
<surveyls_endtext><![CDATA[<br />
]]></surveyls_endtext>
<surveyls_url><![CDATA[]]></surveyls_url>
<surveyls_urldescription><![CDATA[]]></surveyls_urldescription>
<surveyls_email_invite_subj><![CDATA[Invitation to participate in a survey]]></surveyls_email_invite_subj>
<surveyls_email_invite><![CDATA[Dear {FIRSTNAME},<br /><br />you have been invited to participate in a survey.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />Dacă nu mai doriţi să participaţi la acest sondaj şi nu mai doriţi să primiţi invitaţii, faceţi clic pe următorul link:<br />{OPTOUTURL}]]></surveyls_email_invite>
<surveyls_email_remind_subj><![CDATA[Reminder to participate in a survey]]></surveyls_email_remind_subj>
<surveyls_email_remind><![CDATA[Dragă {PRENUMELE},<br /><br />V-am invitat recent să participaţi la un sondaj.<br /><br />Am sesizat că încă nu aţi completat sondajul şi dorim să vă reamintim că acest sondaj este încă valabil, in cazul în care doriţi să participaţi la acesta.<br /><br />Sondajul este intitulat:<br />"{NUMELESONDAJULUI}"<br /><br />"{DESCRIEREASONDAJULUI}"<br /><br />Pentru a participa, vă rugăm să daţi click pe linkul de mai jos.<br /><br />Cu respect,<br /><br />{NUMELEADMINISTRATORULUI} ({EMAILULADMINISTRATORULUI})<br />----------------------------------------------<br />Faceţi clic aici pentru a începe sondajul:<br />{URLULSONDAJULUI}<br /><br />Dacă nu mai doriţi să participaţi la acest sondaj şi nu mai doriţi să primiţi invitaţii, faceţi clic pe următorul link:<br />{OPTOUTURL}]]></surveyls_email_remind>
<surveyls_email_register_subj><![CDATA[Înregistrarea sondajului confirmată]]></surveyls_email_register_subj>
<surveyls_email_register><![CDATA[Dragă {PRENUMELE},<br /><br />Dumneavoastră sau altcineva folosind emailul dumneavoastră, v-aţi înregistrat să participaţi la un sondaj online intitulat {NUMELESONDAJULUI}<br /><br />Pentru a finaliza acest sondaj, faceţi clic pe următorul URL:<br /><br />{URLULSONDAJULUI}<br /><br />Dacă aveţi întrebări suplimentare despre acest sondaj, sau dacă nu v-aţi înregistrat să participaţi şi credeţi că acest email este o eroare, vă rog contactaţi {NUMELEADMINISTRATORULUI} la {EMAILULADMINISTRATORULUI}.]]></surveyls_email_register>
<surveyls_email_confirm_subj><![CDATA[Confirmation of your participation in our survey]]></surveyls_email_confirm_subj>
<surveyls_email_confirm><![CDATA[Dear {FIRSTNAME},<br /><br />this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br /><br />If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.<br /><br />Sincerely,<br /><br />{ADMINNAME}]]></surveyls_email_confirm>
<surveyls_dateformat><![CDATA[1]]></surveyls_dateformat>
<email_admin_notification_subj><![CDATA[Response submission for survey {SURVEYNAME}]]></email_admin_notification_subj>
<email_admin_notification><![CDATA[Hello,<br /><br />A new response was submitted for your survey '{SURVEYNAME}'.<br /><br />Click the following link to reload the survey:<br />{RELOADURL}<br /><br />Click the following link to see the individual response:<br />{VIEWRESPONSEURL}<br /><br />Click the following link to edit the individual response:<br />{EDITRESPONSEURL}<br /><br />View statistics by clicking here:<br />{STATISTICSURL}]]></email_admin_notification>
<email_admin_responses_subj><![CDATA[Response submission for survey {SURVEYNAME} with results]]></email_admin_responses_subj>
<email_admin_responses><![CDATA[<style type="text/css">
.printouttable {
margin:1em auto;
}
.printouttable th {
text-align: center;
}
.printouttable td {
border-color: #ddf #ddf #ddf #ddf;
border-style: solid;
border-width: 1px;
padding:0.1em 1em 0.1em 0.5em;
}
.printouttable td:first-child {
font-weight: 700;
text-align: right;
padding-right: 5px;
padding-left: 5px;
}
.printouttable .printanswersquestion td{
background-color:#F7F8FF;
}
.printouttable .printanswersquestionhead td{
text-align: left;
background-color:#ddf;
}
.printouttable .printanswersgroup td{
text-align: center;
font-weight:bold;
padding-top:1em;
}
</style>Hello,<br /><br />A new response was submitted for your survey '{SURVEYNAME}'.<br /><br />Click the following link to reload the survey:<br />{RELOADURL}<br /><br />Click the following link to see the individual response:<br />{VIEWRESPONSEURL}<br /><br />Click the following link to edit the individual response:<br />{EDITRESPONSEURL}<br /><br />View statistics by clicking here:<br />{STATISTICSURL}<br /><br /><br />The following answers were given by the participant:<br />{ANSWERTABLE}]]></email_admin_responses>
<surveyls_numberformat><![CDATA[1]]></surveyls_numberformat>
</row>
</rows>
</surveys_languagesettings>
</document>
| ||||
| Bug heat | 12 | ||||
| Complete LimeSurvey version number (& build) | 11379 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | dk | ||||
| Server OS (if known) | Linux | ||||
| Webserver software & version (if known) | apache, dk | ||||
| PHP Version | 5.2.16 | ||||
|
actually placeholders in the {email adress} work, onlymessage body and message text make placeholders to fail |
|
|
shou ... Link editor replace { with %7B, for email compatibility, then replacement can't find it. Only for extra mailto body and subject. But it's only without editing source. |
|
|
I was also going to comment on the special characters being replaced by HEX values. But more importantly, even if the special characters could be found during the replacement process, I wonder whether replacement variables in an email message are limited to those variables that are contextually allowable. For example, in a survey question, if you click on the icon for the list of user-replaceable tokens, the items you see are quite limited compared to the list for the invitation email template. When I tried to reproduce the issue here, I noticed that {TOKEN} and {SURVEYURL} (for example) were not in the list of available replacement tokens. Could that be the real reason for the "problem"? |
|
|
@JEfromcanada: {TOKEN} AND {SUREVYURL} will work, afaik, if you put them in manually. Actually several placeholders will work unofficially :) where they are not supposed to. @Shnoulle - When replacing manually the %7B with { my email worked perfectly. My mail client was Opera's M2. However, I do not believe this matters, since the replacement is done in PhP, right? So are the incompatibilities you mention still effective? |
|
|
OK, I found (at least one instance of) the problem. In register.php, line 159, there is a missing "?" after optout.php: the line: should be: I checked to see if there were similar errors in other modules, but couldn't find any. |
|
|
Yea, i think we can do a %7BTOKEN%7D replacement in PHP, i look for this. Thanks JEfromCanada for the patch. |
|
|
Hello, I think there are a possibility to have the TOKEN, FIRSTNAME without modification in ckeditor. replacement function can replace: But i think it can be a future problem for Yii/TMS version. I can make the patch, but i need you advice Thibault :). Denis |
|
|
This works properly in 1.92 |
|
|
1.92RC3 released |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-12-01 18:06 | atiut | New Issue | |
| 2011-12-01 18:06 | atiut | File Added: bugtracker_link editor.lss.htm | |
| 2011-12-01 18:09 | atiut | Note Added: 16734 | |
| 2011-12-02 09:02 | Mazi | Assigned To | => DenisChenu |
| 2011-12-02 09:02 | Mazi | Status | new => assigned |
| 2011-12-02 19:37 | DenisChenu | Note Added: 16735 | |
| 2011-12-02 19:41 | DenisChenu | Note Edited: 16735 | |
| 2011-12-02 20:40 | JEfromCanada | Note Added: 16736 | |
| 2011-12-02 21:36 | atiut | Note Added: 16737 | |
| 2011-12-03 10:13 | JEfromCanada | Note Added: 16738 | |
| 2011-12-03 10:31 | JEfromCanada | Note Edited: 16738 | |
| 2011-12-03 11:29 | DenisChenu | Note Added: 16739 | |
| 2011-12-05 15:04 | DenisChenu | Assigned To | DenisChenu => lemeur |
| 2011-12-05 15:07 | DenisChenu | Note Added: 16741 | |
| 2011-12-09 09:07 | DenisChenu | Issue Monitored: DenisChenu | |
| 2012-01-20 16:19 | TMSWhite | Note Added: 16864 | |
| 2012-01-20 16:19 | TMSWhite | Status | assigned => resolved |
| 2012-01-20 16:19 | TMSWhite | Resolution | open => fixed |
| 2012-01-24 21:37 | c_schmitz | Fixed in Version | => 1.92RC3 |
| 2012-01-24 21:37 | c_schmitz | Steps to Reproduce Updated | |
| 2012-01-30 18:41 | c_schmitz | Note Added: 17075 | |
| 2012-01-30 18:41 | c_schmitz | Status | resolved => closed |
| 2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |
| 2021-08-05 10:59 | guest | Bug heat | 10 => 12 |