mirror of
https://codeberg.org/SeedDMS/paperless
synced 2024-11-26 15:32:08 +00:00
log if doc has duplicate name
This commit is contained in:
parent
26b7ec2d69
commit
bbc94a90bb
|
@ -581,6 +581,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
/* Check if name already exists in the folder */
|
||||
if(!$settings->_enableDuplicateDocNames) {
|
||||
if($mfolder->hasDocumentByName($docname)) {
|
||||
$logger->log('Duplicate document name '.$docname, PEAR_LOG_ERR);
|
||||
return $response->withJson(getMLText("document_duplicate_name"), 409);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user