From 3daa939f2234fd75f5cde24b77ab6a6f562afc0e Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 5 Jul 2024 16:24:29 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?utf8?q?=20=D0=BD=D0=B0=20=D0=BD=D0=B0=D0=BB=D0=B8=D1=87=D0=B8=D0=B5=20?= =?utf8?q?=D1=87=D0=B5=D0=BA=D0=B8=D0=BD=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5?= =?utf8?q?=D0=B2=D0=B4=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/timetable-fact/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/views/timetable-fact/index.php b/erp24/views/timetable-fact/index.php index 02b8a682..118767a3 100644 --- a/erp24/views/timetable-fact/index.php +++ b/erp24/views/timetable-fact/index.php @@ -79,7 +79,7 @@ $this->params['breadcrumbs'][] = $this->title; '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', 'height' => '100px']) : null; }; }, @@ -88,7 +88,7 @@ $this->params['breadcrumbs'][] = $this->title; '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', 'height' => '100px']) : null; }; }, -- 2.39.5