浏览代码

[Administration] Paramètres : problème upload images

master
Guillaume Bourgeois 1年前
父节点
当前提交
c811ea497c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      common/helpers/Upload.php
  2. +1
    -1
      common/logic/Producer/Producer/Service/ProducerBuilder.php

+ 1
- 1
common/helpers/Upload.php 查看文件

@@ -43,7 +43,7 @@ use Yii;

class Upload
{
public static function uploadFile($model, $champsFile, $champs, $filename_old = '')
public static function uploadFile($model, $champsFile, $champs, string $filename_old = null)
{
$file = $model->$champsFile;
if ($file) {

+ 1
- 1
common/logic/Producer/Producer/Service/ProducerBuilder.php 查看文件

@@ -153,7 +153,7 @@ class ProducerBuilder extends AbstractBuilder
}
}

public function processUploadImage(Producer $producer, string $name, string $filenameOld, bool $deleteImage)
public function processUploadImage(Producer $producer, string $name, string $filenameOld = null, bool $deleteImage = false)
{
Upload::uploadFile($producer, $name.'File', $name, $filenameOld);
if ($deleteImage) {

正在加载...
取消
保存