mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-05-13 21:21:26 +00:00
log data send to put_document
This commit is contained in:
parent
bfc6d044e8
commit
ed9c01e05a
|
@ -1055,6 +1055,10 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
||||||
return $response->withStatus(204);
|
return $response->withStatus(204);
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Currently just sets tags but receives all kind of data, which
|
||||||
|
* is still disregarded.
|
||||||
|
*/
|
||||||
function put_documents($request, $response, $args) { /* {{{ */
|
function put_documents($request, $response, $args) { /* {{{ */
|
||||||
$dms = $this->container->dms;
|
$dms = $this->container->dms;
|
||||||
$userobj = $this->container->userobj;
|
$userobj = $this->container->userobj;
|
||||||
|
@ -1070,6 +1074,7 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
||||||
if($document) {
|
if($document) {
|
||||||
$body = $request->getBody();
|
$body = $request->getBody();
|
||||||
if($data = json_decode($body, true)) {
|
if($data = json_decode($body, true)) {
|
||||||
|
$logger->log(var_export($data, true), PEAR_LOG_DEBUG);
|
||||||
if(isset($data['tags'])) {
|
if(isset($data['tags'])) {
|
||||||
$cats = [];
|
$cats = [];
|
||||||
foreach($data['tags'] as $tagid) {
|
foreach($data['tags'] as $tagid) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user