From 07a7a711fa94ecb8a3e57658778cf2eeccbdc024 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 12 May 2008 15:59:03 +0000 Subject: [PATCH] MDL-10899 - followup - need to move random questions too. --- question/category_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/category_class.php b/question/category_class.php index 90336a0976a..20fbf10e5f7 100644 --- a/question/category_class.php +++ b/question/category_class.php @@ -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); }