mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 03:52:16 +02:00
MDL-75065 qbank_editquestion: fix creating simple calculated question
This commit is contained in:
parent
35b993b694
commit
5e27f3a7b2
@ -213,7 +213,7 @@ $toform->appendqnumstring = $appendqnumstring;
|
||||
$toform->returnurl = $originalreturnurl;
|
||||
$toform->makecopy = $makecopy;
|
||||
$toform->idnumber = null;
|
||||
if (isset($question->id)) {
|
||||
if (!empty($question->id)) {
|
||||
$questionobject = question_bank::load_question($question->id);
|
||||
$toform->status = $questionobject->status;
|
||||
$toform->idnumber = $questionobject->idnumber;
|
||||
|
Loading…
x
Reference in New Issue
Block a user