View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04565Bug reportsSurvey takingpublic2010-09-08 17:27
Reporteruser9471Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.90+ 
Summary04565: QUESTION_CODE from question.pstpl is no longer displayed
Description

Since update to v1.90+ an inserted "{QUESTION_CODE}:" in question.pstpl is no longer displayed. Preview in template editor is okay, but in question preview and at runtime just the colon shows up and the question code is missing. In print_question.pstpl {QUESTION_CODE} is working as expected.

Steps To Reproduce
  • copy default template
  • insert "{QUESTION_CODE}:" into question.pstpl before "{QUESTION_TEXT}"
  • check preview window below
  • save changes
  • create a question and check the preview
    or run the survey
  • there is no question code displayed, just the colon
TagsNo tags attached.
Attached Files
template+survey.zip (36,138 bytes)
Bug heat6
Complete LimeSurvey version number (& build)9089
I will donate to the project if issue is resolved
Browser
Database type & versionmysql 5.1.48
Server OS (if known)Linux CentOS
Webserver software & version (if known)apache 2.2.16
PHP Version5.2.14

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-08-28 01:46

administrator   ~12722

I can't reproduce that. Can you zip up the template in question and attach the survey here? Thank you,

user9471

2010-08-28 11:18

  ~12723

Last edited: 2010-08-28 17:13

I've uploaded template and survey. Simultaneously, I will try a completly new installation. Perhaps the issue has something to do with the upgrade process to 1.90+

user9471

2010-08-28 17:13

  ~12725

I tried a new installation, but the issue still remains.

davidhayashida

davidhayashida

2010-08-31 00:07

reporter   ~12729

Hello,

I was able to get the question code to show up by replacing

$question['code']
with
$questioncode

on line 2785 of common.php in the str_replace(). Is this an okay fix to get by for the moment? Thanks.

user9471

2010-08-31 10:42

  ~12730

Hi davidhayashida,

Thanks a lot. Now it works perfect.

BR, jsc333

c_schmitz

c_schmitz

2010-09-05 23:38

administrator   ~12756

I imported your template and survey and still cannot reproduce it.
Question code shows up just fine here.

c_schmitz

c_schmitz

2010-09-05 23:49

administrator   ~12757

It looks like you did not test your own survey :-)
This problem occurs only in question by question or all-in-one mode.
Fixed in rev 9114

user9471

2010-09-06 08:20

  ~12761

Thanks for fixing it. LimeSurvey is great!

c_schmitz

c_schmitz

2010-09-08 17:27

administrator   ~12785

Fix was released in 1.90+ version.

Issue History

Date Modified Username Field Change
2010-08-27 12:53 user9471 New Issue
2010-08-27 12:53 user9471 File Added: Screenshots.zip
2010-08-27 12:54 user9471 Issue Monitored: user9471
2010-08-27 12:54 user9471 Issue End Monitor: user9471
2010-08-27 12:54 user9471 Issue Monitored: user9471
2010-08-27 12:55 user9471 Issue End Monitor: user9471
2010-08-28 01:46 c_schmitz Note Added: 12722
2010-08-28 01:46 c_schmitz Assigned To => c_schmitz
2010-08-28 01:46 c_schmitz Status new => feedback
2010-08-28 11:15 user9471 File Added: template+survey.zip
2010-08-28 11:18 user9471 Note Added: 12723
2010-08-28 11:18 user9471 Status feedback => assigned
2010-08-28 17:13 user9471 Note Added: 12725
2010-08-28 17:13 user9471 Note Edited: 12723
2010-08-31 00:07 davidhayashida Note Added: 12729
2010-08-31 10:42 user9471 Note Added: 12730
2010-09-05 23:38 c_schmitz Note Added: 12756
2010-09-05 23:49 c_schmitz Note Added: 12757
2010-09-05 23:49 c_schmitz Status assigned => resolved
2010-09-05 23:49 c_schmitz Fixed in Version => 1.90+
2010-09-05 23:49 c_schmitz Resolution open => fixed
2010-09-05 23:49 c_schmitz File Deleted: Screenshots.zip
2010-09-06 08:20 user9471 Note Added: 12761
2010-09-08 17:27 c_schmitz Note Added: 12785
2010-09-08 17:27 c_schmitz Status resolved => closed
2010-10-25 00:18 c_schmitz Category Survey at Runtime => Survey taking