From e92dce10ef47bad6ab9bd4852e6476d680f880cf Mon Sep 17 00:00:00 2001
From: Chris Sangwin <C.J.Sangwin@ed.ac.uk>
Date: Fri, 1 Dec 2023 10:27:40 +0000
Subject: [PATCH] Fix to issue #1079: spelling mistake on questionvariable-qv.
---
question.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/question.php b/question.php
index 0fbd261cf..b17da1f6e 100644
--- a/question.php
+++ b/question.php
@@ -1780,7 +1780,7 @@ class qtype_stack_question extends question_graded_automatically_with_countback
* Currently the cache contains the following keys:
* 'units' for declaring the units-mode.
* 'forbiddenkeys' for the lsit of those.
- * 'contextvariable-qv' the pre-validated question-variables which are context variables.
+ * 'contextvariables-qv' the pre-validated question-variables which are context variables.
* 'statement-qv' the pre-validated question-variables.
* 'preamble-qv' the matching blockexternals.
* 'required' the lists of inputs required by given PRTs an array by PRT-name.
@@ -1845,7 +1845,7 @@ class qtype_stack_question extends question_graded_automatically_with_countback
if ($questionvariables === null || trim($questionvariables) === '') {
$cc['statement-qv'] = null;
$cc['preamble-qv'] = null;
- $cc['contextvariable-qv'] = null;
+ $cc['contextvariables-qv'] = null;
$cc['security-context'] = [];
} else {
$kv = new stack_cas_keyval($questionvariables, $options);
--
GitLab