MDL-12016 Category text not being sent to 'create_category_path'.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user