mirror of
https://github.com/moodle/moodle.git
synced 2025-03-10 18:59:55 +01:00
MDL-40434 calculatedmulti multiple-response questions not randomised
This commit is contained in:
parent
f0d37f4ac5
commit
38c3492038
@ -65,7 +65,6 @@ class qtype_calculatedmulti_single_question extends qtype_multichoice_single_que
|
|||||||
qtype_calculatedmulti_calculate_helper::calculate_all_expressions($this);
|
qtype_calculatedmulti_calculate_helper::calculate_all_expressions($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function get_num_variants() {
|
public function get_num_variants() {
|
||||||
return $this->datasetloader->get_number_of_items();
|
return $this->datasetloader->get_number_of_items();
|
||||||
}
|
}
|
||||||
@ -115,6 +114,19 @@ class qtype_calculatedmulti_multi_question extends qtype_multichoice_multi_quest
|
|||||||
public function calculate_all_expressions() {
|
public function calculate_all_expressions() {
|
||||||
qtype_calculatedmulti_calculate_helper::calculate_all_expressions($this);
|
qtype_calculatedmulti_calculate_helper::calculate_all_expressions($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_num_variants() {
|
||||||
|
return $this->datasetloader->get_number_of_items();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function get_variants_selection_seed() {
|
||||||
|
if (!empty($this->synchronised) &&
|
||||||
|
$this->datasetloader->datasets_are_synchronised($this->category)) {
|
||||||
|
return 'category' . $this->category;
|
||||||
|
} else {
|
||||||
|
return parent::get_variants_selection_seed();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user