Bug fixes

This commit is contained in:
Dennis Eichhorn 2018-02-18 10:46:57 +01:00
parent 58682a7fb4
commit 0fe561fc8e
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -14,6 +14,8 @@ declare(strict_types=1);
namespace Modules\Organization\Models;
use phpOMS\Contract\ArrayableInterface;
/**
* Organization department class.
*