mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: only overwrite existing cf values in workflow if set
This commit is contained in:
parent
b4047e73bb
commit
f8fe0c079e
@ -784,10 +784,10 @@ def run_workflows(
|
|||||||
field=field,
|
field=field,
|
||||||
document=document,
|
document=document,
|
||||||
).first()
|
).first()
|
||||||
if instance:
|
if instance and args[value_field_name] is not None:
|
||||||
setattr(instance, value_field_name, args[value_field_name])
|
setattr(instance, value_field_name, args[value_field_name])
|
||||||
instance.save()
|
instance.save()
|
||||||
else:
|
elif not instance:
|
||||||
CustomFieldInstance.objects.create(
|
CustomFieldInstance.objects.create(
|
||||||
**args,
|
**args,
|
||||||
field=field,
|
field=field,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user