]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-22 В обращениях клиентов не подгружаются фото
authormarina <m.zozirova@gmail.com>
Wed, 12 Jun 2024 21:55:24 +0000 (00:55 +0300)
committermarina <m.zozirova@gmail.com>
Wed, 12 Jun 2024 21:55:24 +0000 (00:55 +0300)
erp24/forms/timetable/StartForm.php

index f5b18186eb4f5173c6f75247edba4d535e97cb27..61e0dcd7efc7fbb2a885a3be83de547359a94621 100755 (executable)
@@ -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()) {