Updated JSON response
authorThierry Florac <thierry.florac@onf.fr>
Fri, 13 Oct 2017 08:39:29 +0200
changeset 228 f70686f44c7b
parent 227 7a55458f64a7
child 229 c9e2d01b0f8b
Updated JSON response
src/pyams_content/shared/form/zmi/field.py
--- a/src/pyams_content/shared/form/zmi/field.py	Fri Oct 13 08:39:04 2017 +0200
+++ b/src/pyams_content/shared/form/zmi/field.py	Fri Oct 13 08:39:29 2017 +0200
@@ -328,7 +328,7 @@
         if 'label' in changes.get(IFormField, ()):
             output.setdefault('events', []).append({
                 'event': 'PyAMS_content.changed_item',
-                'options': {'object_type': 'form_field',
+                'options': {'handler': 'PyAMS_content.fields.refreshField',
                             'object_name': self.context.__name__,
                             'title': II18n(self.context).query_attribute('label', request=self.request),
                             'visible': self.context.visible}