Update "append" method locate call
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Nov 2018 14:14:52 +0100
changeset 1104 8f073ae1b302
parent 1103 c691e4bfbe19
child 1105 226ee1507157
Update "append" method locate call
src/pyams_content/component/gallery/__init__.py
--- a/src/pyams_content/component/gallery/__init__.py	Mon Nov 19 11:54:44 2018 +0100
+++ b/src/pyams_content/component/gallery/__init__.py	Mon Nov 19 14:14:52 2018 +0100
@@ -57,7 +57,7 @@
         key = str(self.last_id)
         if not notify:
             # pre-locate gallery item to avoid multiple notifications
-            locate(value, self.key)
+            locate(value, self, key)
         self[key] = value
         self.last_id += 1
         if not notify: