Merge pull request #18843 from indelog/fix_ecm_deletion

Fix append module suffix on src_object_type when create ecm file
This commit is contained in:
Laurent Destailleur 2021-09-30 13:32:42 +02:00 committed by GitHub
commit 98d8bad955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5297,7 +5297,7 @@ abstract class CommonObject
$ecmfile->gen_or_uploaded = 'generated';
$ecmfile->description = ''; // indexed content
$ecmfile->keywords = ''; // keyword content
$ecmfile->src_object_type = $this->table_element;
$ecmfile->src_object_type = $this->table_element.(empty($this->module) ? '' : '@'.$this->module);
$ecmfile->src_object_id = $this->id;
$result = $ecmfile->create($user);