mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-14 21:22:20 +00:00
fix(backend): ensure internal notifications are created in a valid format (#10502)
Closes #10435
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user