From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 13 Mar 2025 00:06:02 +0000 (-0700) Subject: Fix: only parse custom field queries when valid (#9384) X-Git-Tag: v2.15.0-beta.rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5e54c6e56b8587ec82068cdca5971f801667fc;p=thirdparty%2Fpaperless-ngx.git Fix: only parse custom field queries when valid (#9384) --- diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts index 900e72785..debd7b4b3 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -872,7 +872,7 @@ export class FilterEditorComponent let queries = this.customFieldQueriesModel.queries.map((query) => query.serialize() ) - if (queries.length > 0) { + if (queries.length > 0 && this.customFieldQueriesModel.isValid()) { filterRules.push({ rule_type: FILTER_CUSTOM_FIELDS_QUERY, value: JSON.stringify(queries[0]),