View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
17851 | Bug reports | Expression Manager | public | 2022-01-25 15:23 | 2022-01-31 10:58 |
Reporter | Mazi | Assigned To | DenisChenu | ||
Priority | high | Severity | block | ||
Status | closed | Resolution | fixed | ||
Product Version | 5.2.x | ||||
Summary | 17851: Placeholder {name.NAOK} gets replaced with survey title | ||||
Description | When using a question with code "name" and using that at the admin email, the placeholder is replaced with the survey title instead which is really weird. My assumption is that placeholders are indexed in a wrong way since the {SURVEYNAME} placeholder is used within the emails as well, see screenshots | ||||
Steps To Reproduce | Steps to reproduceImport the attached survey, activate and run it and enter your email. Expected resultReplace {name.NAOK} with the name entered. Actual resultThe SURVEYNAME data is shown instead | ||||
Tags | No tags attached. | ||||
Attached Files | limesurvey_survey_585127.lss (34,652 bytes)
<?xml version="1.0" encoding="UTF-8"?> <document> <LimeSurveyDocType>Survey</LimeSurveyDocType> <DBVersion>479</DBVersion> <languages> <language>en</language> </languages> <groups> <fields> <fieldname>gid</fieldname> <fieldname>sid</fieldname> <fieldname>group_order</fieldname> <fieldname>randomization_group</fieldname> <fieldname>grelevance</fieldname> </fields> <rows> <row> <gid><![CDATA[18]]></gid> <sid><![CDATA[585127]]></sid> <group_order><![CDATA[1]]></group_order> <randomization_group/> <grelevance/> </row> </rows> </groups> <group_l10ns> <fields> <fieldname>id</fieldname> <fieldname>gid</fieldname> <fieldname>group_name</fieldname> <fieldname>description</fieldname> <fieldname>language</fieldname> <fieldname>sid</fieldname> <fieldname>group_order</fieldname> <fieldname>randomization_group</fieldname> <fieldname>grelevance</fieldname> </fields> <rows> <row> <id><![CDATA[25]]></id> <gid><![CDATA[18]]></gid> <group_name><![CDATA[test]]></group_name> <description/> <language><![CDATA[en]]></language> <sid><![CDATA[585127]]></sid> <group_order><![CDATA[1]]></group_order> <randomization_group/> <grelevance/> </row> </rows> </group_l10ns> <questions> <fields> <fieldname>qid</fieldname> <fieldname>parent_qid</fieldname> <fieldname>sid</fieldname> <fieldname>gid</fieldname> <fieldname>type</fieldname> <fieldname>title</fieldname> <fieldname>preg</fieldname> <fieldname>other</fieldname> <fieldname>mandatory</fieldname> <fieldname>encrypted</fieldname> <fieldname>question_order</fieldname> <fieldname>scale_id</fieldname> <fieldname>same_default</fieldname> <fieldname>relevance</fieldname> <fieldname>question_theme_name</fieldname> <fieldname>modulename</fieldname> </fields> <rows> <row> <qid><![CDATA[1111]]></qid> <parent_qid><![CDATA[0]]></parent_qid> <sid><![CDATA[585127]]></sid> <gid><![CDATA[18]]></gid> <type><![CDATA[S]]></type> <title><![CDATA[name]]></title> <preg/> <other><![CDATA[N]]></other> <mandatory><![CDATA[N]]></mandatory> <encrypted><![CDATA[N]]></encrypted> <question_order><![CDATA[1]]></question_order> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> <relevance><![CDATA[1]]></relevance> <question_theme_name><![CDATA[shortfreetext]]></question_theme_name> <modulename/> </row> <row> <qid><![CDATA[1112]]></qid> <parent_qid><![CDATA[0]]></parent_qid> <sid><![CDATA[585127]]></sid> <gid><![CDATA[18]]></gid> <type><![CDATA[N]]></type> <title><![CDATA[age]]></title> <preg/> <other><![CDATA[N]]></other> <mandatory><![CDATA[N]]></mandatory> <encrypted><![CDATA[N]]></encrypted> <question_order><![CDATA[3]]></question_order> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> <relevance><![CDATA[1]]></relevance> <question_theme_name><![CDATA[numerical]]></question_theme_name> <modulename/> </row> <row> <qid><![CDATA[1113]]></qid> <parent_qid><![CDATA[0]]></parent_qid> <sid><![CDATA[585127]]></sid> <gid><![CDATA[18]]></gid> <type><![CDATA[S]]></type> <title><![CDATA[email]]></title> <preg/> <other><![CDATA[N]]></other> <mandatory><![CDATA[Y]]></mandatory> <encrypted><![CDATA[N]]></encrypted> <question_order><![CDATA[2]]></question_order> <scale_id><![CDATA[0]]></scale_id> <same_default><![CDATA[0]]></same_default> <relevance><![CDATA[1]]></relevance> <question_theme_name><![CDATA[shortfreetext]]></question_theme_name> <modulename/> </row> </rows> </questions> <question_l10ns> <fields> <fieldname>id</fieldname> <fieldname>qid</fieldname> <fieldname>question</fieldname> <fieldname>help</fieldname> <fieldname>script</fieldname> <fieldname>language</fieldname> </fields> <rows> <row> <id><![CDATA[1295]]></id> <qid><![CDATA[1111]]></qid> <question><![CDATA[Your Name?]]></question> <help/> <script/> <language><![CDATA[en]]></language> </row> <row> <id><![CDATA[1296]]></id> <qid><![CDATA[1112]]></qid> <question><![CDATA[You age?]]></question> <help/> <script/> <language><![CDATA[en]]></language> </row> <row> <id><![CDATA[1297]]></id> <qid><![CDATA[1113]]></qid> <question><![CDATA[Your Email?]]></question> <help/> <script/> <language><![CDATA[en]]></language> </row> </rows> </question_l10ns> <question_attributes> <fields> <fieldname>qid</fieldname> <fieldname>attribute</fieldname> <fieldname>value</fieldname> <fieldname>language</fieldname> </fields> <rows> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[cssclass]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[display_rows]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[em_validation_q]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[em_validation_q_tip]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[hide_tip]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[input_size]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_city]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_country]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_defaultcoordinates]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_mapheight]]></attribute> <value><![CDATA[300]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_mapservice]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_mapwidth]]></attribute> <value><![CDATA[500]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_mapzoom]]></attribute> <value><![CDATA[11]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_nodefaultfromip]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_postal]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[location_state]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[maximum_chars]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[numbers_only]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[prefix]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[random_group]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[save_as_default]]></attribute> <value><![CDATA[Y]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[statistics_graphtype]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[statistics_showgraph]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[statistics_showmap]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[suffix]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[text_input_width]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_action]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_countdown_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_disable_next]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_disable_prev]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_message_delay]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_message_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_timer_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_2]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_2_display_time]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_2_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_2_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_display_time]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1111]]></qid> <attribute><![CDATA[time_limit_warning_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[cssclass]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[em_validation_q]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[em_validation_q_tip]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[em_validation_sq]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[em_validation_sq_tip]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[hide_tip]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[input_size]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[max_num_value_n]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[maximum_chars]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[min_num_value_n]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[num_value_int_only]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[placeholder]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[prefix]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[printable_help]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[public_statistics]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[random_group]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[save_as_default]]></attribute> <value><![CDATA[Y]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[statistics_graphtype]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[statistics_showgraph]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[suffix]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1112]]></qid> <attribute><![CDATA[text_input_width]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[clear_default]]></attribute> <value><![CDATA[N]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[cssclass]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[display_rows]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[em_validation_q]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[em_validation_q_tip]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[hidden]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[hide_tip]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[input_size]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_city]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_country]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_defaultcoordinates]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_mapheight]]></attribute> <value><![CDATA[300]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_mapservice]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_mapwidth]]></attribute> <value><![CDATA[500]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_mapzoom]]></attribute> <value><![CDATA[11]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_nodefaultfromip]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_postal]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[location_state]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[maximum_chars]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[numbers_only]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[page_break]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[prefix]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[random_group]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[save_as_default]]></attribute> <value><![CDATA[N]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[statistics_graphtype]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[statistics_showgraph]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[statistics_showmap]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[suffix]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[text_input_width]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_action]]></attribute> <value><![CDATA[1]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_countdown_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_disable_next]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_disable_prev]]></attribute> <value><![CDATA[0]]></value> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_message_delay]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_message_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_timer_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_2]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_2_display_time]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_2_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_2_style]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_display_time]]></attribute> <value/> <language/> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_message]]></attribute> <value/> <language><![CDATA[en]]></language> </row> <row> <qid><![CDATA[1113]]></qid> <attribute><![CDATA[time_limit_warning_style]]></attribute> <value/> <language/> </row> </rows> </question_attributes> <surveys> <fields> <fieldname>sid</fieldname> <fieldname>gsid</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>ipanonymize</fieldname> <fieldname>refurl</fieldname> <fieldname>showsurveypolicynotice</fieldname> <fieldname>publicstatistics</fieldname> <fieldname>publicgraphs</fieldname> <fieldname>listpublic</fieldname> <fieldname>htmlemail</fieldname> <fieldname>sendconfirmation</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>questionindex</fieldname> <fieldname>navigationdelay</fieldname> <fieldname>nokeyboard</fieldname> <fieldname>alloweditaftercompletion</fieldname> <fieldname>googleanalyticsstyle</fieldname> <fieldname>googleanalyticsapikey</fieldname> <fieldname>tokenencryptionoptions</fieldname> </fields> <rows> <row> <sid><![CDATA[585127]]></sid> <gsid><![CDATA[1]]></gsid> <admin><![CDATA[inherit]]></admin> <adminemail><![CDATA[inherit]]></adminemail> <anonymized><![CDATA[N]]></anonymized> <format><![CDATA[I]]></format> <savetimings><![CDATA[N]]></savetimings> <template><![CDATA[inherit]]></template> <language><![CDATA[en]]></language> <additional_languages/> <datestamp><![CDATA[N]]></datestamp> <usecookie><![CDATA[I]]></usecookie> <allowregister><![CDATA[I]]></allowregister> <allowsave><![CDATA[I]]></allowsave> <autonumber_start><![CDATA[0]]></autonumber_start> <autoredirect><![CDATA[I]]></autoredirect> <allowprev><![CDATA[I]]></allowprev> <printanswers><![CDATA[I]]></printanswers> <ipaddr><![CDATA[N]]></ipaddr> <ipanonymize><![CDATA[N]]></ipanonymize> <refurl><![CDATA[N]]></refurl> <showsurveypolicynotice><![CDATA[0]]></showsurveypolicynotice> <publicstatistics><![CDATA[I]]></publicstatistics> <publicgraphs><![CDATA[I]]></publicgraphs> <listpublic><![CDATA[I]]></listpublic> <htmlemail><![CDATA[I]]></htmlemail> <sendconfirmation><![CDATA[I]]></sendconfirmation> <tokenanswerspersistence><![CDATA[I]]></tokenanswerspersistence> <assessments><![CDATA[I]]></assessments> <usecaptcha><![CDATA[E]]></usecaptcha> <usetokens><![CDATA[N]]></usetokens> <bounce_email><![CDATA[inherit]]></bounce_email> <emailresponseto><![CDATA[inherit]]></emailresponseto> <emailnotificationto><![CDATA[{email.NAOK}]]></emailnotificationto> <tokenlength><![CDATA[-1]]></tokenlength> <showxquestions><![CDATA[I]]></showxquestions> <showgroupinfo><![CDATA[I]]></showgroupinfo> <shownoanswer><![CDATA[I]]></shownoanswer> <showqnumcode><![CDATA[I]]></showqnumcode> <bounceprocessing><![CDATA[N]]></bounceprocessing> <showwelcome><![CDATA[N]]></showwelcome> <showprogress><![CDATA[I]]></showprogress> <questionindex><![CDATA[-1]]></questionindex> <navigationdelay><![CDATA[-1]]></navigationdelay> <nokeyboard><![CDATA[I]]></nokeyboard> <alloweditaftercompletion><![CDATA[I]]></alloweditaftercompletion> <googleanalyticsstyle><![CDATA[0]]></googleanalyticsstyle> <googleanalyticsapikey/> <tokenencryptionoptions/> </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_policy_notice</fieldname> <fieldname>surveyls_policy_error</fieldname> <fieldname>surveyls_policy_notice_label</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>surveyls_attributecaptions</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> <fieldname>attachments</fieldname> </fields> <rows> <row> <surveyls_survey_id><![CDATA[585127]]></surveyls_survey_id> <surveyls_language><![CDATA[en]]></surveyls_language> <surveyls_title><![CDATA[Test NAME placeholder]]></surveyls_title> <surveyls_description/> <surveyls_welcometext/> <surveyls_endtext/> <surveyls_policy_notice/> <surveyls_policy_notice_label/> <surveyls_url/> <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 /> If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br /> {OPTOUTURL}<br /> <br /> If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:<br /> {OPTINURL}]]></surveyls_email_invite> <surveyls_email_remind_subj><![CDATA[Reminder to participate in a survey]]></surveyls_email_remind_subj> <surveyls_email_remind><![CDATA[Dear {FIRSTNAME},<br /> <br /> Recently we invited you to participate in a survey.<br /> <br /> We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.<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 /> If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br /> {OPTOUTURL}]]></surveyls_email_remind> <surveyls_email_register_subj><![CDATA[Survey registration confirmation]]></surveyls_email_register_subj> <surveyls_email_register><![CDATA[Dear {FIRSTNAME},<br /> <br /> You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.<br /> <br /> To complete this survey, click on the following URL:<br /> <br /> {SURVEYURL}<br /> <br /> If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]></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[9]]></surveyls_dateformat> <email_admin_notification_subj><![CDATA[Response submission by {name.NAOK} for survey {SURVEYNAME}]]></email_admin_notification_subj> <email_admin_notification><![CDATA[<p>Hallo {name.NAOK},</p> <br /> A new response was submitted for your survey '{SURVEYNAME}'.<br /> <br /> Your individual response says that your are {name.NAOK} and you are {age.NAOK} years old!<br /> ]]></email_admin_notification> <email_admin_responses_subj><![CDATA[Response submission for survey {SURVEYNAME} with results]]></email_admin_responses_subj> <email_admin_responses><![CDATA[Hello,<br /> <br /> A new response was submitted for your survey '{SURVEYNAME}'.<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[0]]></surveyls_numberformat> <attachments><![CDATA[a:0:{}]]></attachments> </row> </rows> </surveys_languagesettings> <themes> <theme> <sid>585127</sid> <template_name>fruity</template_name> <config> <options>inherit</options> </config> </theme> </themes> <themes_inherited> <theme> <sid>585127</sid> <template_name>fruity</template_name> <config> <options> <ajaxmode>off</ajaxmode> <brandlogo>on</brandlogo> <brandlogofile>themes/survey/fruity/files/logo.png</brandlogofile> <container>on</container> <backgroundimage>off</backgroundimage> <animatebody>off</animatebody> <bodyanimation>fadeInRight</bodyanimation> <bodyanimationduration>500</bodyanimationduration> <animatequestion>off</animatequestion> <questionanimation>flipInX</questionanimation> <questionanimationduration>500</questionanimationduration> <animatealert>off</animatealert> <alertanimation>shake</alertanimation> <alertanimationduration>500</alertanimationduration> <font>noto</font> <bodybackgroundcolor>#ffffff</bodybackgroundcolor> <fontcolor>#444444</fontcolor> <questionbackgroundcolor>#ffffff</questionbackgroundcolor> <questionborder>on</questionborder> <questioncontainershadow>on</questioncontainershadow> <checkicon>f00c</checkicon> <animatecheckbox>on</animatecheckbox> <checkboxanimation>rubberBand</checkboxanimation> <checkboxanimationduration>500</checkboxanimationduration> <animateradio>on</animateradio> <radioanimation>zoomIn</radioanimation> <radioanimationduration>500</radioanimationduration> <zebrastriping>off</zebrastriping> <stickymatrixheaders>off</stickymatrixheaders> <greyoutselected>off</greyoutselected> <hideprivacyinfo>off</hideprivacyinfo> <crosshover>off</crosshover> <showpopups>1</showpopups> <showclearall>off</showclearall> <questionhelptextposition>top</questionhelptextposition> <notables>1</notables> </options> </config> </theme> </themes_inherited> </document> | ||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | Version 5.2.10+220118 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome | ||||
Database type & version | MySQL | ||||
Server OS (if known) | Ubuntu 20 | ||||
Webserver software & version (if known) | |||||
PHP Version | 7.4 | ||||
Good Lord |
|
@DenisChenu, ever seen such an issue? Is it due to the "name" question code or some bug when doing the replacements (wrong value referenced)? |
|
Is his supported behaviour, tho? Does it work with {name}? |
|
? Don't understand … Really strange … |
|
@DenisChenu, when using "q1" instead of "name" as question code, it works fine! |
|
simple lss ? |
|
LSS is attached on top. You can simple rename from name -> q1 to test. Didn't test 3.x. We ran that at 2.0x and faced no issues. No additional plugins, fresh 5.x install. |
|
What about "mame" instead of "name"? Or is it only name that fails? |
|
Just import the test survey and play with it as needed, @ollehar. |
|
lol |
|
Sorry for the lss, I check replacements added by LimeMailer : |
|
The issues are here : $thissurvey['name'] is in replacement (and a lot more …) Then update tempVars : https://github.com/LimeSurvey/LimeSurvey/blob/2ee532e062333f4666eebd72b7f58548ba76b6b7/application/helpers/expressions/em_manager_helper.php#L7735 Maybe need to update $tempVars ONLY if it not exist in $knownVars ? because : currently : its not only name, 'ownerLabel' , '''format' … then put a question labelled format : set to A,G or Q … |
|
@DenisChenu, I think it should be possible to use keywords like "name", "format" and similar as question code. Maybe we can rename the internal placeholders so they are references as something like $thissurvey['basics_name'], $thissurvey['basics_format'], ...? |
|
@Mazi : complex situation… I must test in 3.X , but i think we have potential issue like this.
It's my issue : i fix it : https://github.com/LimeSurvey/LimeSurvey/commit/de63762472630ab797db4ae65899a53c165eef70 |
|
@galads : fix is here no need project for me ;) |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=33131 |
|
Fixed in Release 5.2.12+220131 |
|
LimeSurvey: master f72cf443 2022-01-31 09:05:14 Committer: GitHub Details Diff |
Fixed issue 17851: Placeholder {name.NAOK} gets replaced with survey title (#2219) * Fixed issue 17851: Placeholder {name.NAOK} gets replaced with survey title Dev: fix templatereplace call in submittokens and sendSubmitNotifications Dev: send thissurvey in redata not in replacement * Dev: Cannot pass parameter 3 by reference |
Affected Issues 17851 |
|
mod - application/helpers/frontend_helper.php | Diff File | ||
mod - application/helpers/replacements_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2022-01-25 15:23 | Mazi | New Issue | |
2022-01-25 15:23 | Mazi | File Added: limesurvey_survey_585127.lss | |
2022-01-25 15:23 | Mazi | File Added: image.png | |
2022-01-25 15:23 | Mazi | File Added: image-2.png | |
2022-01-25 15:24 | ollehar | Note Added: 68093 | |
2022-01-25 15:24 | ollehar | Bug heat | 0 => 2 |
2022-01-25 15:25 | Mazi | Note Added: 68094 | |
2022-01-25 15:25 | Mazi | Bug heat | 2 => 4 |
2022-01-25 15:25 | ollehar | Priority | none => urgent |
2022-01-25 15:25 | ollehar | Zoho Project Synchronization | => |Yes| |
2022-01-25 15:25 | ollehar | Note Added: 68095 | |
2022-01-25 15:26 | DenisChenu | Note Added: 68096 | |
2022-01-25 15:26 | DenisChenu | Bug heat | 4 => 6 |
2022-01-25 15:31 | Mazi | Note Added: 68097 | |
2022-01-25 15:31 | Mazi | File Added: image-3.png | |
2022-01-25 15:37 | DenisChenu | Note Added: 68098 | |
2022-01-25 17:33 | ollehar | Priority | urgent => high |
2022-01-25 17:33 | ollehar | Zoho Project Synchronization | Yes => |Yes| |
2022-01-25 18:14 | Mazi | Note Added: 68100 | |
2022-01-25 18:28 | ollehar | Note Added: 68101 | |
2022-01-25 19:24 | Mazi | Note Added: 68102 | |
2022-01-25 19:25 | ollehar | Note Added: 68103 | |
2022-01-26 08:57 | DenisChenu | Note Added: 68104 | |
2022-01-26 09:19 | DenisChenu | Note Added: 68105 | |
2022-01-26 09:47 | Mazi | Note Added: 68106 | |
2022-01-26 10:00 | DenisChenu | Note Added: 68107 | |
2022-01-26 10:00 | DenisChenu | Assigned To | => DenisChenu |
2022-01-26 10:00 | DenisChenu | Status | new => assigned |
2022-01-26 10:28 | DenisChenu | Assigned To | DenisChenu => galads |
2022-01-26 10:28 | DenisChenu | Status | assigned => ready for testing |
2022-01-26 10:29 | DenisChenu | Note Added: 68108 | |
2022-01-31 09:05 | DenisChenu | Changeset attached | => LimeSurvey master f72cf443 |
2022-01-31 09:05 | DenisChenu | Note Added: 68143 | |
2022-01-31 09:05 | DenisChenu | Assigned To | galads => DenisChenu |
2022-01-31 09:05 | DenisChenu | Resolution | open => fixed |
2022-01-31 10:58 | LimeBot | Zoho Project Synchronization | Yes => |Yes| |
2022-01-31 10:58 | LimeBot | Note Added: 68145 | |
2022-01-31 10:58 | LimeBot | Status | ready for testing => closed |
2022-01-31 10:58 | LimeBot | Bug heat | 6 => 8 |