From 488eaca44a48e015f446abb0fe089307a2ab7b6d Mon Sep 17 00:00:00 2001 From: mchurch <mchurch> Date: Thu, 15 Nov 2007 14:05:17 +0000 Subject: [PATCH] MDL-12016 Category text not being sent to 'create_category_path'. --- question/format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/question/format.php b/question/format.php index 091897dcd9..c863dfa54e 100644 --- a/question/format.php +++ b/question/format.php @@ -257,7 +257,7 @@ class qformat_default { if ($question->qtype=='category') { if ($this->catfromfile) { // find/create category object - $catpath = $question->category; + $catpath = $question->category['text'][0]['#']; $newcategory = $this->create_category_path( $catpath, '/'); if (!empty($newcategory)) { $this->category = $newcategory; -- 2.39.5