mirror of
https://github.com/inventree/InvenTree.git
synced 2025-11-13 19:36:46 +00:00
Closes #10435
(cherry picked from commit 96a5291766)
Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
committed by
GitHub
parent
555b72305c
commit
b1d0f3cb9e
@@ -38,6 +38,10 @@ class InvenTreeUINotifications(NotificationMixin, InvenTreePlugin):
|
|||||||
if not users:
|
if not users:
|
||||||
return False
|
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
|
# Bulk create notification messages for all provided users
|
||||||
for user in users:
|
for user in users:
|
||||||
entries.append(
|
entries.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user