Don't notify when adding images to gallery
authorThierry Florac <thierry.florac@onf.fr>
Mon, 19 Nov 2018 14:51:59 +0100
changeset 1105 226ee1507157
parent 1104 8f073ae1b302
child 1106 7a431c7ffcef
Don't notify when adding images to gallery
src/pyams_content/component/gallery/zmi/file.py
--- a/src/pyams_content/component/gallery/zmi/file.py	Mon Nov 19 14:14:52 2018 +0100
+++ b/src/pyams_content/component/gallery/zmi/file.py	Mon Nov 19 14:51:59 2018 +0100
@@ -112,7 +112,7 @@
                     medias.append(media)
             for media in medias:
                 media.author = data.get('author')
-                self.context.append(media)
+                self.context.append(media, notify=False)
         return medias
 
     def get_ajax_output(self, changes):