MDL-10899 - followup - need to move random questions too.
This commit is contained in:
@@ -352,7 +352,7 @@ class question_category_object {
|
||||
}
|
||||
|
||||
function move_questions($oldcat, $newcat){
|
||||
$questionids = get_records_select_menu('question', "category = $oldcat AND parent = 0", '', 'id,1');
|
||||
$questionids = get_records_select_menu('question', "category = $oldcat AND (parent = 0 OR parent = id)", '', 'id,1');
|
||||
if (!question_move_questions_to_category(implode(',', array_keys($questionids)), $newcat)) {
|
||||
print_error('errormovingquestions', 'question', $returnurl, $ids);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user