From 149d1be9d8a9ad617af96c942c68858c27c3969d Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 9 Jul 2024 12:54:58 +0300 Subject: [PATCH] =?utf8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?utf8?q?=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0=20?= =?utf8?q?=D0=BD=D0=B0=20=D0=BD=D1=83=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/timetable/tabel_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/views/timetable/tabel_edit.php b/erp24/views/timetable/tabel_edit.php index a4f49aff..2d09465a 100755 --- a/erp24/views/timetable/tabel_edit.php +++ b/erp24/views/timetable/tabel_edit.php @@ -168,7 +168,7 @@ if (Timetable::getAllowEditShift($slot->date, $numDay)) { 'label' => 'Отметка о начале', 'format' => 'raw', 'value' => function ($model) { - if (!empty($model->checkin_start_id)) { + if ($model->checkinStart) { return !empty($photo = $model->checkinStart->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'style' => 'min-width: 200px']) : null; }; return ''; @@ -178,7 +178,7 @@ if (Timetable::getAllowEditShift($slot->date, $numDay)) { 'label' => 'Отметка о конце', 'format' => 'raw', 'value' => function ($model) { - if (!empty($model->checkin_end_id)) { + if ($model->checkinEnd) { return !empty($photo = $model->checkinEnd->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'style' => 'min-width: 200px']) : null; }; return ''; -- 2.39.5