From: marina Date: Wed, 12 Jun 2024 21:55:24 +0000 (+0300) Subject: ERP-22 В обращениях клиентов не подгружаются фото X-Git-Tag: 1.2^2~3^2~5 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=c4fae87506fd52e36514554d2eed32723f612148;p=erp24_rep%2Fyii-erp24%2F.git ERP-22 В обращениях клиентов не подгружаются фото --- 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()) {