Browse Source

Merge tag 'hotfix_231003_1' into develop

hotfix_231003_1
feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
9ad2130249
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      common/helpers/Upload.php
  2. +1
    -1
      common/logic/Producer/Producer/Service/ProducerBuilder.php

+ 1
- 1
common/helpers/Upload.php View File



class Upload 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; $file = $model->$champsFile;
if ($file) { if ($file) {

+ 1
- 1
common/logic/Producer/Producer/Service/ProducerBuilder.php View File

} }
} }


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); Upload::uploadFile($producer, $name.'File', $name, $filenameOld);
if ($deleteImage) { if ($deleteImage) {

Loading…
Cancel
Save