]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Проверка на наличие чекина перевд выводом origin/bug_smirnov_2024-07_05_check_if_checkin_is_not_null
authorAlexander Smirnov <fredeom@mail.ru>
Fri, 5 Jul 2024 13:24:29 +0000 (16:24 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Fri, 5 Jul 2024 13:24:29 +0000 (16:24 +0300)
erp24/views/timetable-fact/index.php

index 02b8a6823efb20d2e67ceebbf38736b4144bc2f6..118767a3123db3f13d7afc7c3b8993179798ce3f 100644 (file)
@@ -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;
                     };
                 },