From 0fe561fc8e121de6102c1dddab287621d91f24ce Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 18 Feb 2018 10:46:57 +0100 Subject: [PATCH] Bug fixes --- Controller.php | 2 +- Models/Department.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Controller.php b/Controller.php index 1902f4a..6d35185 100644 --- a/Controller.php +++ b/Controller.php @@ -554,7 +554,7 @@ class Controller extends ModuleAbstract implements WebInterface $unit = new Unit(); $unit->setName((string) $request->getData('name')); $unit->setDescriptionRaw((string) ($request->getData('description') ?? '')); - $unit->setDescription(Markdwon::parse((string) ($request->getData('description') ?? ''))); + $unit->setDescription(Markdown::parse((string) ($request->getData('description') ?? ''))); $parent = (int) $request->getData('parent'); $unit->setParent(!empty($parent) ? $parent : null); diff --git a/Models/Department.php b/Models/Department.php index 257b4f1..390adba 100644 --- a/Models/Department.php +++ b/Models/Department.php @@ -14,6 +14,8 @@ declare(strict_types=1); namespace Modules\Organization\Models; +use phpOMS\Contract\ArrayableInterface; + /** * Organization department class. *