FIX upload of files src_object_type

This commit is contained in:
Laurent Destailleur
2023-10-31 10:44:58 +01:00
parent 1a8176253c
commit 59b9d12ed5
3 changed files with 3 additions and 3 deletions

View File

@@ -908,7 +908,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;
}