diff src/backend.py @ 397:a4980d03b3a3

backend: fixed items data copy on notification
author Goffi <goffi@goffi.org>
date Mon, 11 Mar 2019 20:43:51 +0100
parents 562e7a01218d
children 1dc606612405
line wrap: on
line diff
--- a/src/backend.py	Sat Feb 23 21:00:29 2019 +0100
+++ b/src/backend.py	Mon Mar 11 20:43:51 2019 +0100
@@ -1457,7 +1457,7 @@
             if schema is not None:
                 # we have to copy items_data because different subscribers may receive
                 # different items (e.g. read restriction in schema)
-                items_data = itemDataCopy(items_data)
+                items_data = [itemDataCopy(item_data) for item_data in items_data]
                 self.backend.filterItemsWithSchema(items_data, schema, False)
 
             for item_data in items_data: