forked from Wavyzz/dolibarr
Update api_documents.class.php
This commit is contained in:
committed by
GitHub
parent
d62d24a337
commit
0023850c9a
@@ -468,7 +468,7 @@ class Documents extends DolibarrApi
|
||||
$object = new KnowledgeRecord($this->db);
|
||||
$result = $object->fetch($id, $ref);
|
||||
if (!$result) {
|
||||
throw new RestException(404, 'Expense report not found');
|
||||
throw new RestException(404, 'KM article not found');
|
||||
}
|
||||
|
||||
$upload_dir = $conf->knowledgemanagement->dir_output.'/knowledgerecord/'.dol_sanitizeFileName($object->ref);
|
||||
|
||||
Reference in New Issue
Block a user