diff --git a/Models/EmployeeHistory.php b/Models/EmployeeHistory.php index 203c90a..9879f11 100755 --- a/Models/EmployeeHistory.php +++ b/Models/EmployeeHistory.php @@ -47,7 +47,7 @@ class EmployeeHistory implements \JsonSerializable, ArrayableInterface * @var int|Employee * @since 1.0.0 */ - private $employee = 0; + public $employee = 0; /** * Unit @@ -55,7 +55,7 @@ class EmployeeHistory implements \JsonSerializable, ArrayableInterface * @var null|int|Unit * @since 1.0.0 */ - private $unit = null; + public $unit = null; /** * Department @@ -63,7 +63,7 @@ class EmployeeHistory implements \JsonSerializable, ArrayableInterface * @var null|int|Department * @since 1.0.0 */ - private $department = null; + public $department = null; /** * Position @@ -71,7 +71,7 @@ class EmployeeHistory implements \JsonSerializable, ArrayableInterface * @var null|int|Position * @since 1.0.0 */ - private $position = null; + public $position = null; /** * Files. diff --git a/Theme/Backend/staff-list.tpl.php b/Theme/Backend/staff-list.tpl.php index 0fdd42d..223c866 100755 --- a/Theme/Backend/staff-list.tpl.php +++ b/Theme/Backend/staff-list.tpl.php @@ -15,6 +15,7 @@ declare(strict_types=1); use Modules\HumanResourceManagement\Models\NullEmployeeHistory; use phpOMS\Uri\UriFactory; +use Modules\Media\Models\NullMedia; /** * @var \phpOMS\Views\View $this @@ -42,7 +43,7 @@ echo $this->getData('nav')->render(); ?> $value) : ++$c; $url = UriFactory::build('{/prefix}humanresource/staff/profile?{?}&id=' . $value->getId()); ?>
| = $this->getHtml('Position'); ?> - | = $this->printHtml($recentHistory->getPosition()->name); ?> + | = $this->printHtml($recentHistory->position->name); ?> | |||||
|---|---|---|---|---|---|---|---|
| = $this->getHtml('Department'); ?> - | = $this->printHtml($recentHistory->getDepartment()->name); ?> + | = $this->printHtml($recentHistory->department->name); ?> | |||||
| = $this->getHtml('Unit'); ?> - | = $this->printHtml($recentHistory->getUnit()->name); ?> + | = $this->printHtml($recentHistory->unit->name); ?> | |||||
| = $this->getHtml('Birthday'); ?> | 06.09.1934 @@ -121,9 +121,9 @@ echo $this->getData('nav')->render(); ?> | ||||||
| = $hist->getStart()->format('Y-m-d'); ?> | = $hist->getEnd() === null ? '' : $hist->getEnd()->format('Y-m-d'); ?> - | = $this->printHtml($hist->getUnit()->name); ?> - | = $this->printHtml($hist->getDepartment()->name); ?> - | = $this->printHtml($hist->getPosition()->name); ?> + | = $this->printHtml($hist->unit->name); ?> + | = $this->printHtml($hist->department->name); ?> + | = $this->printHtml($hist->position->name); ?> |