mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-01-03 12:09:46 +01:00
Fix: only overwrite existing cf values in workflow if set (#9459)
This commit is contained in:
parent
f753f6dc46
commit
a8de26f88a
1 changed files with 2 additions and 2 deletions
|
|
@ -784,10 +784,10 @@ def run_workflows(
|
|||
field=field,
|
||||
document=document,
|
||||
).first()
|
||||
if instance:
|
||||
if instance and args[value_field_name] is not None:
|
||||
setattr(instance, value_field_name, args[value_field_name])
|
||||
instance.save()
|
||||
else:
|
||||
elif not instance:
|
||||
CustomFieldInstance.objects.create(
|
||||
**args,
|
||||
field=field,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue