Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4.11.5 #46

Merged
merged 3 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions edit_multianswerwiris_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ class qtype_multianswer_edit_form_helper extends qtype_multianswer_edit_form {
protected function definition_inner($mform) {
// Remove wiris particle from subquestion qtypes so the multianswer form does not think
// we are changing the qtypes when we are not actually doing it.
foreach ($this->savedquestiondisplay->options->questions as $subq) {
$qtype = $subq->qtype;
if (substr($qtype, -5) == 'wiris') {
$subq->qtype = substr($qtype, 0, strlen($qtype) - 5);
if (isset($this->savedquestiondisplay)) {
foreach ($this->savedquestiondisplay->options->questions as $subq) {
$qtype = $subq->qtype;
if (substr($qtype, -5) == 'wiris') {
$subq->qtype = substr($qtype, 0, strlen($qtype) - 5);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion question.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private function set_shortanswer_matching_answers(array $response) {
$this->step->reset_attempts();
} catch (moodle_exception $e) {
// Notify of the error.
$this->step->inc_attempts();
$this->step->inc_attempts($e);
throw $e;
}
}
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2024032204;
$plugin->version = 2024032205;
$plugin->requires = 2015111600; // Moodle 3.0.
$plugin->release = '4.11.4';
$plugin->release = '4.11.5';
$plugin->maturity = MATURITY_STABLE;
$plugin->component = 'qtype_multianswerwiris';
$plugin->dependencies = array(
'qtype_wq' => 2024032204
'qtype_wq' => 2024032205
);
Loading