diff --git a/Models/Department.php b/Models/Department.php index 5ac5847..0775b3e 100644 --- a/Models/Department.php +++ b/Models/Department.php @@ -82,6 +82,18 @@ class Department implements ArrayableInterface, \JsonSerializable */ protected $descriptionRaw = ''; + /** + * Constructor + * + * @param string $name Department name + * + * @since 1.0.0 + */ + public function __construct(string $name = '') + { + $this->setName($name); + } + /** * Get id * diff --git a/Theme/Backend/unit-profile.tpl.php b/Theme/Backend/unit-profile.tpl.php index a909eeb..bad8907 100644 --- a/Theme/Backend/unit-profile.tpl.php +++ b/Theme/Backend/unit-profile.tpl.php @@ -42,7 +42,9 @@ echo $this->getData('nav')->render(); ?> $unit->getDescriptionRaw(), $unit->getDescription() ); ?> -