mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
FIX upload of files src_object_type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user