From c4fae87506fd52e36514554d2eed32723f612148 Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 13 Jun 2024 00:55:24 +0300 Subject: [PATCH] =?utf8?q?ERP-22=20=D0=92=20=D0=BE=D0=B1=D1=80=D0=B0=D1=89?= =?utf8?q?=D0=B5=D0=BD=D0=B8=D1=8F=D1=85=20=D0=BA=D0=BB=D0=B8=D0=B5=D0=BD?= =?utf8?q?=D1=82=D0=BE=D0=B2=20=D0=BD=D0=B5=20=D0=BF=D0=BE=D0=B4=D0=B3?= =?utf8?q?=D1=80=D1=83=D0=B6=D0=B0=D1=8E=D1=82=D1=81=D1=8F=20=D1=84=D0=BE?= =?utf8?q?=D1=82=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/forms/timetable/StartForm.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erp24/forms/timetable/StartForm.php b/erp24/forms/timetable/StartForm.php index f5b18186..61e0dcd7 100755 --- a/erp24/forms/timetable/StartForm.php +++ b/erp24/forms/timetable/StartForm.php @@ -209,6 +209,10 @@ class StartForm extends Model return false; } + if (strpos($filePath, 'data') !== 0) { + $filePath = substr($filePath, strpos($filePath, 'data')); + } + $attributes = ['photo' => $filePath] + $this->getAttributes(); $this->checkinModel->setAttributes($attributes); if (!$this->checkinModel->save()) { -- 2.39.5