Loading Core/Helpdesk/Category/Category.php +5 −2 Original line number Diff line number Diff line Loading @@ -40,6 +40,8 @@ class Category /** @var string $branch */ protected $branch; /** @var int $position */ protected $position = 10; protected $questions; Loading @@ -52,6 +54,7 @@ class Category $export['parent'] = $this->getParent() ? $this->getParent()->export() : null; $export['branch'] = $this->getBranch(); $export['questions'] = $this->getQuestions() ? Factory::exportable($this->getQuestions()) : []; $export['position'] = $this->getPosition(); return $export; } Loading Core/Helpdesk/Category/Repository.php +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ class Repository $category->setUuid($row['uuid']->uuid()) ->setTitle($row['title']) ->setParentUuid($row['parent']) ->setBranch($row['branch']); ->setBranch($row['branch']) ->setPosition($row['position'] ?? 10); if ($opts['recursive']) { if ($category->getParentUuid()) { Loading Controllers/api/v2/helpdesk/categories.php +1 −1 File changed.Contains only whitespace changes. Show changes Loading
Core/Helpdesk/Category/Category.php +5 −2 Original line number Diff line number Diff line Loading @@ -40,6 +40,8 @@ class Category /** @var string $branch */ protected $branch; /** @var int $position */ protected $position = 10; protected $questions; Loading @@ -52,6 +54,7 @@ class Category $export['parent'] = $this->getParent() ? $this->getParent()->export() : null; $export['branch'] = $this->getBranch(); $export['questions'] = $this->getQuestions() ? Factory::exportable($this->getQuestions()) : []; $export['position'] = $this->getPosition(); return $export; } Loading
Core/Helpdesk/Category/Repository.php +2 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,8 @@ class Repository $category->setUuid($row['uuid']->uuid()) ->setTitle($row['title']) ->setParentUuid($row['parent']) ->setBranch($row['branch']); ->setBranch($row['branch']) ->setPosition($row['position'] ?? 10); if ($opts['recursive']) { if ($category->getParentUuid()) { Loading
Controllers/api/v2/helpdesk/categories.php +1 −1 File changed.Contains only whitespace changes. Show changes