View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
07644 | Bug reports | Survey editing | public | 2013-03-08 10:36 | 2013-03-11 19:36 |
Reporter | suisse | Assigned To | DenisChenu | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Fixed in Version | 2.00+ | ||||
Summary | 07644: {TEMPLATEURL} cannot be used in predefined labels inside " | ||||
Description | When using {TEMPLATEURL} in a predefined label, e.g. in order to use icons instead of text in a matrix question, it gets transformed to %7BTEMPLATEURL%7D when saving. This does not happen every time I do it. If you workaround it by setting the text in phpMyAdmin, the labels show up right. But when using the label set in a question, suddenly whitespace is added and { TEMPLATEURL } will, of course, not be evaluated, thus the images do not show up. As I cannot add more than one file, I chose to attach the label set, as you surely have a survey at hand where you can easily apply that set. I apologize if that was the bad choice... | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | |||||
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 | |||||
Hello, Just a comment: But still, using EM in label set have to be used, even if show error. |
|
I do not quite agree on that. We are a company, so all our surveys use the same template in order to be consistent with the website design. I suppose that a lot of people use the same template over and over again. This might, of course, be different on a hosted environment where you have different people from different entities and everyone has their own preferences when it comes to design. |
|
Denis, you have already started discussing this issue so I assigned the ticket to you :-) I also think that being able to use a placeholder for the paths makes sense. |
|
Mazi : is there are already a placeholder for ROOTURL/PUBLICURL ? Then we have to add this one ... <quote> Denis, you have already started discussing this issue so I assigned the ticket to you :-)</quote>Like we say in France: "Allways turn seven times your tongue before speaking" |
|
This will, of course, not resolve the issue -- at least not as long as white space is inserted between the curly braces and the placeholder. |
|
It's only with "{TEMPLATEURL}" . But updated model rules. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=11821 |
|
LimeSurvey: master 897255a3 2013-03-11 12:37 Details Diff |
Fixed issue 07644: {TEMPLATEURL} cannot be used in predefined labels inside " Dev: updated model and add rules for xssfiltering |
Affected Issues 07644 |
|
mod - application/helpers/admin/label_helper.php | Diff File | ||
mod - application/models/Label.php | Diff File | ||
LimeSurvey: 2.05 d8999f70 2013-03-11 12:41 Details Diff |
Fixed issue 07644: {TEMPLATEURL} cannot be used in predefined labels inside " Dev: updated model and add rules for xssfiltering |
Affected Issues 07644 |
|
mod - application/helpers/admin/label_helper.php | Diff File | ||
mod - application/models/Label.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-08 10:36 | suisse | New Issue | |
2013-03-08 10:36 | suisse | File Added: limesurvey_labelset_4.lsl | |
2013-03-08 10:45 | suisse | File Added: limesurvey_survey_913582 (1).lss | |
2013-03-08 11:04 | DenisChenu | Note Added: 24580 | |
2013-03-08 11:10 | suisse | Note Added: 24581 | |
2013-03-08 11:37 | Mazi | Assigned To | => DenisChenu |
2013-03-08 11:37 | Mazi | Status | new => assigned |
2013-03-08 11:37 | Mazi | Note Added: 24583 | |
2013-03-08 11:38 | Mazi | Note Edited: 24583 | |
2013-03-08 13:14 | DenisChenu | Note Added: 24586 | |
2013-03-08 13:16 | DenisChenu | Note Edited: 24586 | |
2013-03-08 13:17 | suisse | Note Added: 24587 | |
2013-03-11 12:40 | DenisChenu | Note Added: 24609 | |
2013-03-11 12:41 | DenisChenu | Summary | {TEMPLATEURL} cannot be used in predefined labels => {TEMPLATEURL} cannot be used in predefined labels inside " |
2013-03-11 12:41 | DenisChenu | Project | Feature requests => Bug reports |
2013-03-11 12:42 | DenisChenu | Changeset attached | => LimeSurvey master 897255a3 |
2013-03-11 12:42 | DenisChenu | Note Added: 24610 | |
2013-03-11 12:42 | DenisChenu | Resolution | open => fixed |
2013-03-11 19:36 | DenisChenu | Changeset attached | => LimeSurvey 2.05 d8999f70 |
2013-03-11 19:36 | DenisChenu | Status | assigned => closed |
2013-03-11 19:36 | DenisChenu | Fixed in Version | => 2.00+ |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |