mirror of
https://codeberg.org/SeedDMS/paperless
synced 2024-11-26 15:32:08 +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 */
|
||||
if(isset($params['tags__id__in'])) {
|
||||
$catid = (int) $params['tags__id__in'];
|
||||
if($catid) {
|
||||
if($cat = $dms->getDocumentCategory($catid)) {
|
||||
$categories[] = $cat;
|
||||
$categorynames[] = $cat->getName();
|
||||
}
|
||||
$catids = explode(',', $params['tags__id__in']);
|
||||
if($catids) {
|
||||
foreach($catids as $catid)
|
||||
if($cat = $dms->getDocumentCategory($catid)) {
|
||||
$categories[] = $cat;
|
||||
$categorynames[] = $cat->getName();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user