From aa2f5d3ba1dca51bbd7c6d70b45c38ae188481b1 Mon Sep 17 00:00:00 2001 From: signebedi Date: Wed, 4 Sep 2024 21:26:05 -0500 Subject: [PATCH] Added: last editor to create_submission event hook action (#342) --- libreforms_fastapi/app/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libreforms_fastapi/app/__init__.py b/libreforms_fastapi/app/__init__.py index 2aec9c3..0337734 100644 --- a/libreforms_fastapi/app/__init__.py +++ b/libreforms_fastapi/app/__init__.py @@ -1188,6 +1188,7 @@ def run_event_hooks( data = {} metadata = { doc_db.created_by_field: user.username, # Set the creator as the current user + doc_db.last_editor_field: user.username, # Set the last editor as the current user } for field_name, field_config in values.items():