mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-12016 Category text not being sent to 'create_category_path'.
This commit is contained in:
parent
ce2df2884a
commit
488eaca44a
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ class qformat_default {
|
||||||
if ($question->qtype=='category') {
|
if ($question->qtype=='category') {
|
||||||
if ($this->catfromfile) {
|
if ($this->catfromfile) {
|
||||||
// find/create category object
|
// find/create category object
|
||||||
$catpath = $question->category;
|
$catpath = $question->category['text'][0]['#'];
|
||||||
$newcategory = $this->create_category_path( $catpath, '/');
|
$newcategory = $this->create_category_path( $catpath, '/');
|
||||||
if (!empty($newcategory)) {
|
if (!empty($newcategory)) {
|
||||||
$this->category = $newcategory;
|
$this->category = $newcategory;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue