From 8284c084f0c048735101173d30b3064cf3dde974 Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 13 Jun 2024 12:53:00 +0300 Subject: [PATCH] =?utf8?q?ERP-5=20=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE?= =?utf8?q?=D1=82=D0=B0=D1=82=D1=8C=20=D1=84=D0=B0=D0=BA=D1=82=D0=B8=D1=87?= =?utf8?q?=D0=B5=D1=81=D0=BA=D0=B8=D0=B9=20=D0=BF=D0=BB=D0=B0=D0=BD=20?= =?utf8?q?=D0=BF=D0=BE=20=D1=81=D0=BE=D1=82=D1=80=D1=83=D0=B4=D0=BD=D0=B8?= =?utf8?q?=D0=BA=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/views/timetable-fact/index.php | 4 ++-- erp24/views/timetable-fact/view.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/erp24/views/timetable-fact/index.php b/erp24/views/timetable-fact/index.php index d76e5ee8..11ddd103 100644 --- a/erp24/views/timetable-fact/index.php +++ b/erp24/views/timetable-fact/index.php @@ -80,7 +80,7 @@ $this->params['breadcrumbs'][] = $this->title; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_start_id)) { - return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinStart->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ], @@ -89,7 +89,7 @@ $this->params['breadcrumbs'][] = $this->title; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_end_id)) { - return !empty($photo = $model->checkinEnd->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinEnd->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ], diff --git a/erp24/views/timetable-fact/view.php b/erp24/views/timetable-fact/view.php index 22084db9..9b151402 100644 --- a/erp24/views/timetable-fact/view.php +++ b/erp24/views/timetable-fact/view.php @@ -149,7 +149,7 @@ $this->title = "Фактический табель #$model->id"; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_start_id)) { - return !empty($photo = $model->checkinStart->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinStart->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ], @@ -158,7 +158,7 @@ $this->title = "Фактический табель #$model->id"; 'format' => 'raw', 'value' => function ($model) { if (!empty($model->checkin_end_id)) { - return !empty($photo = $model->checkinEnd->photo) ? Html::img($photo, ['alt' => 'selfie', 'height' => '100px']) : null; + return !empty($photo = $model->checkinEnd->photo) ? Html::img("/$photo", ['alt' => 'selfie', 'height' => '100px']) : null; }; }, ] -- 2.39.5