Changed JSON response
authorThierry Florac <thierry.florac@onf.fr>
Fri, 13 Oct 2017 08:29:05 +0200
changeset 213 fd2f6aaa2478
parent 212 696fc2a40371
child 214 533d8603d145
Changed JSON response
src/pyams_content/component/paragraph/zmi/__init__.py
--- a/src/pyams_content/component/paragraph/zmi/__init__.py	Fri Oct 13 08:28:34 2017 +0200
+++ b/src/pyams_content/component/paragraph/zmi/__init__.py	Fri Oct 13 08:29:05 2017 +0200
@@ -117,7 +117,7 @@
         if 'title' in changes.get(IBaseParagraph, ()):
             output.setdefault('events', []).append({
                 'event': 'PyAMS_content.changed_item',
-                'options': {'object_type': 'paragraph',
+                'options': {'handler': 'PyAMS_content.paragraphs.refreshParagraph',
                             'object_name': self.context.__name__,
                             'title': II18n(self.context).query_attribute('title', request=self.request),
                             'visible': self.context.visible}