From 34afe92a6050fdf1c8a88ecfae3fc529921c7825 Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Sun, 5 Sep 2010 21:48:50 +0000 Subject: [PATCH] Fixed issue #4565: QUESTION_CODE is no longer displayed in question-by-question or all-in-one survey mode git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey@9114 b72ed6b6-b9f8-46b5-92b4-906544132732 --- common.php | 2 +- group.php | 1 - question.php | 2 +- survey.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/common.php b/common.php index 5b3209392e8..87904ebcdb0 100644 --- a/common.php +++ b/common.php @@ -2693,7 +2693,7 @@ function templatereplace($line, $replacements=array()) global $percentcomplete, $move; global $groupname, $groupdescription; global $question; - global $questioncode, $answer, $navigator; + global $answer, $navigator; global $help, $totalquestions, $surveyformat; global $completed, $register_errormsg; global $notanswered, $privacy, $surveyid; diff --git a/group.php b/group.php index 46276390794..66440fc71fd 100644 --- a/group.php +++ b/group.php @@ -1120,7 +1120,6 @@ function checkconditions(value, name, type) //=================================================================== $answer=$qa[1]; $help=$qa[2]; - $questioncode=$qa[5]; $question_template = file_get_contents($thistpl.'/question.pstpl'); diff --git a/question.php b/question.php index 8ea403085c0..fd3cb910894 100644 --- a/question.php +++ b/question.php @@ -505,10 +505,10 @@ $question['essentials'] = 'id="question'.$qa[4].'"'.$n_q_display; $question['class'] = $q_class; $question['man_class'] = $man_class; + $question['code'] = $qa[5]; //=================================================================== $answer=$qa[1]; $help=$qa[2]; - $questioncode=$qa[5]; $question_template = file_get_contents($thistpl.'/question.pstpl'); diff --git a/survey.php b/survey.php index 30647ffe63d..6dbcfea2b03 100644 --- a/survey.php +++ b/survey.php @@ -921,10 +921,10 @@ function checkconditions(value, name, type) $question['essentials'] = 'id="question'.$qa[4].'"'.$n_q_display; $question['class'] = $q_class; $question['man_class'] = $man_class; + $question['code'] = $qa[5]; //=================================================================== $answer=$qa[1]; $help=$qa[2]; - $questioncode=$qa[5]; $question_template = file_get_contents($thistpl.'/question.pstpl');