View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 04918 | Bug reports | Theme editor | public | 2011-02-02 14:07 | 2011-04-11 11:30 |
| Reporter | Mazi | Assigned To | lemeur | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 1.91RC3 | ||||
| Fixed in Version | 1.91RC6 | ||||
| Summary | 04918: GSoC - QUESTION_CODE is not correctly replaced at bluengrey template | ||||
| Description | The bluengrey template displays the question code in front of the question text by default (see attached screenshot). | ||||
| Steps To Reproduce |
| ||||
| Additional Information | Thibault, I did some testing and will assign some tickets to you so you can choose who could best fix it. | ||||
| Tags | No tags attached. | ||||
| Attached Files | 04918_dev.patch (549 bytes)
Index: common_functions.php
===================================================================
--- common_functions.php (revision 9890)
+++ common_functions.php (working copy)
@@ -2945,7 +2945,7 @@
}
else
{
- if (strpos($line, "{QUESTION_CODE}") !== false) $line=str_replace("{QUESTION_CODE}", '' , $line);
+ if (strpos($line, "{QUESTION_CODE}") !== false) $line=preg_replace("/{QUESTION_CODE}:?/", '', $line);
};
if (strpos($line, "{ANSWER}") !== false) $line=str_replace("{ANSWER}", $answer, $line);
| ||||
| Bug heat | 6 | ||||
| Complete LimeSurvey version number (& build) | 9715 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Firefox 3.6 | ||||
| Database type & version | MySQL 5 | ||||
| Server OS (if known) | Win 7 | ||||
| Webserver software & version (if known) | Apache 2.2 | ||||
| PHP Version | 5.3.1 | ||||
| Git branch / Pull Request URL | |||||
|
I can reproduce it in 1.91RC5 too. Should i open a new ticket or attach a patch here? |
|
|
Magiclko, you can attach a patch in this ticket. Thx, |
|
|
I did actually :) |
|
|
Oups didn't see it ;-) |
|
|
Fixed in rev 9905 and 9906 |
|
|
1.91RC6 released. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-02-02 14:07 | Mazi | New Issue | |
| 2011-02-02 14:07 | Mazi | Status | new => assigned |
| 2011-02-02 14:07 | Mazi | Assigned To | => lemeur |
| 2011-02-02 14:07 | Mazi | File Added: question_code_191.PNG | |
| 2011-02-02 14:08 | Mazi | File Added: question_code_191-Template_Editor.PNG | |
| 2011-02-09 16:04 | Mazi | Summary | QUESTION_CODE is not correctly replaced at bluengrey template => GSoC - QUESTION_CODE is not correctly replaced at bluengrey template |
| 2011-03-19 13:19 |
|
Note Added: 14463 | |
| 2011-03-19 14:00 |
|
File Added: 04918_dev.patch | |
| 2011-03-19 18:06 | lemeur | Note Added: 14464 | |
| 2011-03-19 18:09 |
|
Note Added: 14466 | |
| 2011-03-19 19:14 | lemeur | Note Added: 14467 | |
| 2011-03-22 21:10 | lemeur | Note Added: 14518 | |
| 2011-03-22 21:10 | lemeur | Status | assigned => resolved |
| 2011-03-22 21:10 | lemeur | Fixed in Version | => 1.91RC6 |
| 2011-03-22 21:10 | lemeur | Resolution | open => fixed |
| 2011-04-11 11:30 | c_schmitz | Note Added: 14764 | |
| 2011-04-11 11:30 | c_schmitz | Status | resolved => closed |
| 2015-12-11 14:40 | c_schmitz | Category | Templates => Theme editor |