Skip to content
Browse files

MDL-12016 Category text not being sent to 'create_category_path'.

  • Loading branch information...
1 parent ed0acd0 commit 0b0f2f864b34e93d1f7d3773b5a08fd9d278a90d mchurch committed Nov 15, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 question/format.php
View
2 question/format.php
@@ -229,7 +229,7 @@ function importprocess() {
if ($question->qtype=='category') {
if ($this->catfromfile) {
// find/create category object
- $catpath = $question->category;
+ $catpath = $question->category['text'][0]['#'];
$newcategory = create_category_path( $catpath, '/', $this->course->id );
if (!empty($newcategory)) {
$this->category = $newcategory;

0 comments on commit 0b0f2f8

Please sign in to comment.
Something went wrong with that request. Please try again.