FIX upload of files src_object_type

This commit is contained in:
Laurent Destailleur
2023-10-31 10:44:58 +01:00
parent 85d36ddc58
commit 0b9795f34c
3 changed files with 3 additions and 3 deletions

View File

@@ -1038,7 +1038,7 @@ function dol_move($srcfile, $destfile, $newmask = 0, $overwriteifexists = 1, $te
$ecmfile->filename = $filename;
$ecmfile->label = md5_file(dol_osencode($destfile)); // $destfile is a full path to file
$ecmfile->fullpath_orig = $srcfile;
$ecmfile->gen_or_uploaded = 'upload';
$ecmfile->gen_or_uploaded = 'uploaded';
if (!empty($moreinfo) && !empty($moreinfo['description'])) {
$ecmfile->description = $moreinfo['description']; // indexed content
} else {