]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: set search term when using advanced search from global search (#11503)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 30 Nov 2025 15:20:24 +0000 (07:20 -0800)
committerGitHub <noreply@github.com>
Sun, 30 Nov 2025 15:20:24 +0000 (07:20 -0800)
src-ui/src/app/components/app-frame/global-search/global-search.component.ts

index fed452bfbf670d2e79bb202e348f3f7170f71c53..4f9a2467c05ade2cc58cb4c92d877e75c51911d8 100644 (file)
@@ -411,6 +411,9 @@ export class GlobalSearchComponent implements OnInit {
     const ruleType = this.useAdvancedForFullSearch
       ? FILTER_FULLTEXT_QUERY
       : FILTER_TITLE_CONTENT
+    this.documentService.searchQuery = this.useAdvancedForFullSearch
+      ? this.query
+      : ''
     this.documentListViewService.quickFilter([
       { rule_type: ruleType, value: this.query },
     ])