Update api_documents.class.php
This commit is contained in:
parent
d62d24a337
commit
0023850c9a
@ -468,7 +468,7 @@ class Documents extends DolibarrApi
|
|||||||
$object = new KnowledgeRecord($this->db);
|
$object = new KnowledgeRecord($this->db);
|
||||||
$result = $object->fetch($id, $ref);
|
$result = $object->fetch($id, $ref);
|
||||||
if (!$result) {
|
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);
|
$upload_dir = $conf->knowledgemanagement->dir_output.'/knowledgerecord/'.dol_sanitizeFileName($object->ref);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user