mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
CONTRIB-490 "Adding support for generation of test calculated question type" replacing old dml function call with new call to method on $DB. Ooops, and adding DB as global variable in method.
This commit is contained in:
parent
c9f4940e64
commit
01f3ba1350
1 changed files with 1 additions and 0 deletions
|
@ -1085,6 +1085,7 @@ class question_calculated_qtype extends question_dataset_dependent_questiontype
|
|||
* Alternate DB table prefix may be used to facilitate data deletion.
|
||||
*/
|
||||
function generate_test($name, $courseid = null) {
|
||||
global $DB;
|
||||
list($form, $question) = parent::generate_test($name, $courseid);
|
||||
$form->feedback = 1;
|
||||
$form->multiplier = array(1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue