mirror of
https://codeberg.org/SeedDMS/paperless
synced 2024-11-26 15:32:08 +00:00
search if title_content or title__icontains is passed
This commit is contained in:
parent
12c5cbe6ba
commit
51ff1e6c7c
|
@ -270,8 +270,11 @@ class SeedDMS_ExtPaperless_RestAPI_Controller { /* {{{ */
|
|||
if($fullsearch) {
|
||||
if (isset($params["query"]) && is_string($params["query"])) {
|
||||
$query = $params["query"];
|
||||
}
|
||||
else {
|
||||
} elseif (isset($params["title_content"]) && is_string($params["title_content"])) {
|
||||
$query = $params['title_content'];
|
||||
} elseif (isset($params["title__icontains"]) && is_string($params["title__icontains"])) {
|
||||
$query = $params['title__icontains'];
|
||||
} else {
|
||||
$query = "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user