View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04918Bug reportsTheme editorpublic2011-04-11 11:30
ReporterMazi Assigned Tolemeur  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.91RC3 
Target Version1.91RC4Fixed in Version1.91RC6 
Summary04918: 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).
At the current 1.91RC3 version this value isn't correctly replaced at the survey.

Steps To Reproduce
  1. Choose a survey for testing
  2. Assign it the bluengrey template
  3. Activate and start the survey
  4. Check for the question code
Additional Information

Thibault, I did some testing and will assign some tickets to you so you can choose who could best fix it.

TagsNo tags attached.
Attached Files
question_code_191.PNG (1,389 bytes)   
question_code_191.PNG (1,389 bytes)   
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);
04918_dev.patch (549 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)9715
I will donate to the project if issue is resolvedNo
BrowserFirefox 3.6
Database type & versionMySQL 5
Server OS (if known)Win 7
Webserver software & version (if known)Apache 2.2
PHP Version5.3.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

magiclko

magiclko

2011-03-19 13:19

reporter   ~14463

I can reproduce it in 1.91RC5 too. Should i open a new ticket or attach a patch here?

lemeur

lemeur

2011-03-19 18:06

developer   ~14464

Magiclko, you can attach a patch in this ticket.

Thx,
Thibault

magiclko

magiclko

2011-03-19 18:09

reporter   ~14466

I did actually :)

lemeur

lemeur

2011-03-19 19:14

developer   ~14467

Oups didn't see it ;-)
thx, will apply soon.

lemeur

lemeur

2011-03-22 21:10

developer   ~14518

Fixed in rev 9905 and 9906

c_schmitz

c_schmitz

2011-04-11 11:30

administrator   ~14764

1.91RC6 released.

Issue History

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 magiclko Note Added: 14463
2011-03-19 14:00 magiclko File Added: 04918_dev.patch
2011-03-19 18:06 lemeur Note Added: 14464
2011-03-19 18:09 magiclko 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