mirror of
https://codeberg.org/SeedDMS/paperless
synced 2025-05-12 12:41:29 +00:00
take all tags into account when searching
This commit is contained in:
parent
b286b52791
commit
d20b697961
|
@ -316,12 +316,13 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
||||||
}
|
}
|
||||||
/* tags__id__in is used when getting the documents of the inbox */
|
/* tags__id__in is used when getting the documents of the inbox */
|
||||||
if(isset($params['tags__id__in'])) {
|
if(isset($params['tags__id__in'])) {
|
||||||
$catid = (int) $params['tags__id__in'];
|
$catids = explode(',', $params['tags__id__in']);
|
||||||
if($catid) {
|
if($catids) {
|
||||||
if($cat = $dms->getDocumentCategory($catid)) {
|
foreach($catids as $catid)
|
||||||
$categories[] = $cat;
|
if($cat = $dms->getDocumentCategory($catid)) {
|
||||||
$categorynames[] = $cat->getName();
|
$categories[] = $cat;
|
||||||
}
|
$categorynames[] = $cat->getName();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user