mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-03 10:18:40 +00:00
Bug fixes
This commit is contained in:
parent
58682a7fb4
commit
0fe561fc8e
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Organization\Models;
|
||||
|
||||
use phpOMS\Contract\ArrayableInterface;
|
||||
|
||||
/**
|
||||
* Organization department class.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user