From 96a52917665a194c325774bfe4bc648eabd74d2b Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 6 Oct 2025 12:58:19 +0200 Subject: [PATCH] fix(backend): ensure internal notifications are created in a valid format (#10502) Closes #10435 --- .../plugin/builtin/integration/core_notifications.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/InvenTree/plugin/builtin/integration/core_notifications.py b/src/backend/InvenTree/plugin/builtin/integration/core_notifications.py index f55fe46a79..3634c2b3e0 100644 --- a/src/backend/InvenTree/plugin/builtin/integration/core_notifications.py +++ b/src/backend/InvenTree/plugin/builtin/integration/core_notifications.py @@ -38,6 +38,10 @@ class InvenTreeUINotifications(NotificationMixin, InvenTreePlugin): if not users: return False + # Ensure that there is always target object - see https://github.com/inventree/InvenTree/issues/10435 + if not target: + target = self.plugin_config() + # Bulk create notification messages for all provided users for user in users: entries.append(