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

@@ -881,7 +881,7 @@ class Documents extends DolibarrApi
$moreinfo = array('note_private' => 'File uploaded using API /documents from IP '.getUserRemoteIP());
if (!empty($object) && is_object($object) && $object->id > 0) {
$moreinfo['src_object_type'] = $modulepartorig;
$moreinfo['src_object_type'] = $object->table_element;
$moreinfo['src_object_id'] = $object->id;
}