From 30ef4383d19d97fbf3e32bd727407e0012353c8a Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 3 Nov 2023 12:47:57 +1100 Subject: [PATCH] Fix bug when user opts not to receive error reports (#5846) --- InvenTree/InvenTree/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/models.py b/InvenTree/InvenTree/models.py index 44bcca5d9d..a7217bb8e0 100644 --- a/InvenTree/InvenTree/models.py +++ b/InvenTree/InvenTree/models.py @@ -1049,7 +1049,7 @@ def after_error_logged(sender, instance: Error, created: bool, **kwargs): instance, 'inventree.error_log', context=context, - targets=users, + targets=target_users, delivery_methods={common.notifications.UIMessageNotification, }, )