Skip to content

Commit 3f58378

Browse files
committed
iss1680 - Fix mustache tests
1 parent fa40506 commit 3f58378

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

questiontestrun.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@
259259
$variantdata->cmid = $cmid;
260260
$variantdata->questionid = $questionid;
261261
$variantdata->sesskey = $sesskey;
262-
$variantdata->historic = $historic;
262+
$variantdata->historic = $historic ? 1 : 0;
263263
$variantdata->newseed = mt_rand();
264264
$variantdata->deployedseeds = $question->deployedseeds;
265265
$variantdata->hastests = optional_param('testall', null, PARAM_INT);

templates/questiontestrunvariants.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"cmid": 7,
6262
"questionid": "6611",
6363
"sesskey": "ElIpavgr9m",
64-
"historic": false,
64+
"historic": 0,
6565
"newseed": 1300573900,
6666
"deployedseeds": [
6767
"1"

0 commit comments

Comments
 (0)