Skip to content

Commit 504d5d0

Browse files
authored
prepare v6.0.3 (#223)
1 parent 8473c37 commit 504d5d0

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
### 6.0.3 (2025-06-06)
4+
5+
- bugfix: fix error message for partially answered questions in interactive mode
6+
- bugfix: make sure partially answered questions are graded in deferred feedback mode
7+
- bugfix: always use correct MathJax container to fetch preview width
8+
- improvement: assure compatibility with MathJax v3
9+
- improvement: silently discard useless PREFIX for better backwards compatibility
10+
- internal: increased test coverage
11+
- internal: update test_restore_course_with_same_stamp_questions after MDL-85556
12+
313
### 6.0.2 (2025-05-06)
414

515
- bugfix: fix problem with subsequent comments in variable definitions

styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ body#page-question-type-formulas .formulas_input_info_interpretation_incorrect {
152152
/* Form rows normally have 1rem of bottom margin. However, if the form field's ID is answer_xxx,
153153
that margin will be forced to 0 for nicer rendering in the multichoice qtype's edit form. We
154154
now have to force the margin again to get it back. */
155+
/* stylelint-disable declaration-no-important */
155156
body#page-question-type-formulas div[id^="fitem_id_answer_"].mb-3 {
156157
margin-bottom: 1rem !important;
157158
}
159+
/* stylelint-enable declaration-no-important */
158160

159161
/* RTL hacks */
160162
#page-question-type-formulas #id_varsrandom,

tests/edit_formulas_form_test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace qtype_formulas;
2626

27-
use qtype_formulas_edit_form;
2827
use qtype_formulas;
2928
use qtype_formulas_question;
3029
use qtype_formulas_test_helper;
@@ -74,7 +73,7 @@ protected function tearDown(): void {
7473
}
7574

7675
public function test_data_preprocessing(): void {
77-
global $DB, $USER;
76+
global $DB, $USER, $PAGE;
7877
$this->resetAfterTest();
7978
$this->setAdminUser();
8079

@@ -100,6 +99,7 @@ public function test_data_preprocessing(): void {
10099
$questionrecord->formoptions->repeatelements = true;
101100
$questionrecord->beingcopied = false;
102101

102+
$PAGE->set_url('/question/bank/editquestion/question.php');
103103
$form = $this->qtype->create_editing_form('question.php', $questionrecord, $category, $contexts, true);
104104

105105
// Use reflection to access protected method.

tests/evaluator_test.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2366,8 +2366,6 @@ public function test_impossible_stuff(): void {
23662366
self::assertStringEndsWith('Evaluation error: not enough arguments for ternary operator.', $e->getMessage());
23672367
}
23682368
self::assertNotNull($e);
2369-
2370-
23712369
}
23722370

23732371
/**

version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
defined('MOODLE_INTERNAL') || die();
2626

2727
$plugin->component = 'qtype_formulas';
28-
$plugin->version = 2025050600;
28+
$plugin->version = 2025060600;
2929

3030
$plugin->cron = 0;
3131
$plugin->requires = 2022112800;
@@ -36,6 +36,6 @@
3636
'filter_mathjaxloader' => 2022112800,
3737
];
3838
$plugin->supported = [401, 500];
39-
$plugin->release = '6.0.2';
39+
$plugin->release = '6.0.3';
4040

4141
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)