2
0
forked from Wavyzz/dolibarr

Update api_documents.class.php

This commit is contained in:
Laurent Destailleur
2022-04-14 22:16:17 +02:00
committed by GitHub
parent d62d24a337
commit 0023850c9a

View File

@@ -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);