From: marina Date: Mon, 10 Jun 2024 12:03:56 +0000 (+0300) Subject: ERP-22 В обращениях клиентов не подгружаются фото X-Git-Tag: 1.2^2~3^2~7 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e42e898b430475690839dac704e06c63c5acc1c4;p=erp24_rep%2Fyii-erp24%2F.git ERP-22 В обращениях клиентов не подгружаются фото --- diff --git a/erp24/services/FileService.php b/erp24/services/FileService.php index e12c8c60..a77a03ef 100755 --- a/erp24/services/FileService.php +++ b/erp24/services/FileService.php @@ -118,7 +118,7 @@ class FileService public static function saveUploadedFile($file, $entity, $entity_id) { $uploads = Yii::getAlias("@uploads"); - $target_dir = '/' . Yii::$app->user->id . '/' . date("Y") . "/" . date("m") . "/" . date("d"); + $target_dir = '/' . Yii::$app->user->id . '/' . date("Y") . "/" . date("m") . "/" . date("d") . "/"; $filePath = $uploads . $target_dir; if (!is_dir($filePath)) { mkdir($filePath, 0777, true);