View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06748 | Bug reports | Other | public | 2012-10-22 12:53 | 2012-11-02 21:42 |
Reporter | mpolo | Assigned To | c_schmitz | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Fixed in Version | 2.00+ | ||||
Summary | 06748: In PDF export the token table fields placeholders are not replaced | ||||
Description | If I use in my questions the token table fields placeholders (e.g. {TOKEN:FIRSTNAME}, {TOKEN:ATTRIBUTE_1} etc.), when the user prints the suvey at end they are correctly replaced in the onscreen printout, but if the user exports the survey answers in PDF with the button, he gets a PDF with the placeholders unreplaced (e.g. in the form {TOKEN:FIRSTNAME}, {TOKEN:ATTRIBUTE_1} ) | ||||
Steps To Reproduce |
| ||||
Additional Information | I did by myself a little patch that solves the problem. Maybe it's not the cleanest solution, but it works fine. I hope this can be of any help and maybe introduced in future release. in file at line 212 substitute with I've called templatereplace to let the function translate the placeholders in the field. In my case the placeholders are just in the survey question text of "text display" type, so I translated just $fname[0] and I din't need to tranlsate also $fname[1] and $fname[2], but I think for general use you have to templatereplace both. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 8 | ||||
Complete LimeSurvey version number (& build) | 121019 | ||||
I will donate to the project if issue is resolved | |||||
Browser | |||||
Database type & version | |||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | |||||
Could you please add a samplesurvey demonstrating the problem? |
|
Hello, I've uploaded a sample PDF export with the placeholders unreplaced like they appeared before my little patch. |
|
Can you please attach the survey as .lss file? Thank you. |
|
I'm sorry I can't export the survey, it says I would say just create a test survey with just one text-display question with a {TOKEN:FIRSTNAME} field in the "Question" field and try to answer and export in PDF... |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=10112 |
|
Thank you very much. |
|
Fix committed to 2.1 branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=10117 |
|
New version 2.00+ Build 121102 released. |
|
LimeSurvey: master 127432a5 2012-11-02 12:14:35 Details Diff |
Fixed issue 06748: In PDF export the token table fields placeholders are not replaced |
Affected Issues 06748 |
|
mod - application/controllers/PrintanswersController.php | Diff File | ||
LimeSurvey: 2.1 62d1735e 2012-11-02 13:01:00 Details Diff |
Fixed issue 06748: In PDF export the token table fields placeholders are not replaced |
Affected Issues 06748 |
|
mod - application/controllers/PrintanswersController.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-10-22 12:53 | mpolo | New Issue | |
2012-10-22 13:13 | mpolo | Issue Monitored: mpolo | |
2012-10-24 11:57 | mdekker | Assigned To | => mdekker |
2012-10-24 11:57 | mdekker | Status | new => assigned |
2012-10-24 11:57 | mdekker | Note Added: 21592 | |
2012-10-24 11:57 | mdekker | Project | @2@ => Bug reports |
2012-10-24 11:57 | mdekker | Category | Print view => Other issues |
2012-10-25 01:05 | mpolo | File Added: istanza-per-il-conferimento-di-incarico-dirigenziale-936913.pdf | |
2012-10-25 01:07 | mpolo | Note Added: 21638 | |
2012-10-30 09:13 | mdekker | Assigned To | mdekker => |
2012-10-30 09:14 | mdekker | Status | assigned => new |
2012-10-30 20:38 | c_schmitz | Note Added: 21802 | |
2012-10-30 20:38 | c_schmitz | Assigned To | => c_schmitz |
2012-10-30 20:38 | c_schmitz | Status | new => feedback |
2012-11-01 20:58 | mpolo | Note Added: 21881 | |
2012-11-01 20:58 | mpolo | Status | feedback => assigned |
2012-11-02 13:14 | c_schmitz | Changeset attached | => LimeSurvey master 127432a5 |
2012-11-02 13:14 | c_schmitz | Note Added: 21909 | |
2012-11-02 13:14 | c_schmitz | Resolution | open => fixed |
2012-11-02 13:15 | c_schmitz | Note Added: 21910 | |
2012-11-02 13:15 | c_schmitz | Status | assigned => resolved |
2012-11-02 13:15 | c_schmitz | Fixed in Version | => 2.00+ |
2012-11-02 14:02 | c_schmitz | Changeset attached | => LimeSurvey 2.1 62d1735e |
2012-11-02 14:02 | c_schmitz | Note Added: 21915 | |
2012-11-02 21:42 | c_schmitz | Note Added: 21931 | |
2012-11-02 21:42 | c_schmitz | Status | resolved => closed |
2021-08-03 01:04 | guest | Bug heat | 6 => 8 |