]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: edit workflow form not displaying trigger settings in v2.3.0 (#5276)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sat, 6 Jan 2024 17:27:49 +0000 (09:27 -0800)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 17:27:49 +0000 (17:27 +0000)
src-ui/src/app/components/common/edit-dialog/workflow-edit-dialog/workflow-edit-dialog.component.ts

index 793c7102577ac02beefd6a905605da380b6625a4..6778403b91332eb976fb10f1677302f1cdde7796 100644 (file)
@@ -179,9 +179,9 @@ export class WorkflowEditDialogComponent
           filter_filename: new FormControl(trigger.filter_filename),
           filter_path: new FormControl(trigger.filter_path),
           filter_mailrule: new FormControl(trigger.filter_mailrule),
-          matching_algorithm: new FormControl(MATCH_NONE),
-          match: new FormControl(''),
-          is_insensitive: new FormControl(true),
+          matching_algorithm: new FormControl(trigger.matching_algorithm),
+          match: new FormControl(trigger.match),
+          is_insensitive: new FormControl(trigger.is_insensitive),
           filter_has_tags: new FormControl(trigger.filter_has_tags),
           filter_has_correspondent: new FormControl(
             trigger.filter_has_correspondent
@@ -242,6 +242,9 @@ export class WorkflowEditDialogComponent
       filter_has_tags: [],
       filter_has_correspondent: null,
       filter_has_document_type: null,
+      matching_algorithm: MATCH_NONE,
+      match: null,
+      is_insensitive: true,
     })
 
     this.updateTriggerActionFields()