From b1d0f3cb9e468a5c672dff0882d75d4ce21b3c0d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 6 Oct 2025 22:10:26 +1100 Subject: [PATCH] fix(backend): ensure internal notifications are created in a valid format (#10502) (#10506) Closes #10435 (cherry picked from commit 96a52917665a194c325774bfe4bc648eabd74d2b) Co-authored-by: Matthias Mair --- .../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(