MDL-26511 Images in Cloze multichoice

vertical and horizontal answer and in feedback of all qtype answers
This commit is contained in:
ppichet
2013-06-10 11:28:46 +08:00
committed by Dan Poltawski
parent 56ad6d46d1
commit feec4f8941
9 changed files with 136 additions and 14 deletions
+2 -1
View File
@@ -590,7 +590,8 @@ function question_move_questions_to_category($questionids, $newcategoryid) {
SELECT q.id, q.qtype, qc.contextid
FROM {question} q
JOIN {question_categories} qc ON q.category = qc.id
WHERE q.id $questionidcondition", $params);
WHERE q.id $questionidcondition OR q.parent $questionidcondition",
array_merge($params, $params));
foreach ($questions as $question) {
if ($newcontextid != $question->contextid) {
question_bank::get_qtype($question->qtype)->move_files(