Updated table constructor call
authorThierry Florac <thierry.florac@onf.fr>
Thu, 21 Sep 2017 14:30:37 +0200
changeset 180 7fd070302377
parent 179 fb7c5f27e8a3
child 181 6d75755407b7
Updated table constructor call
src/pyams_content/component/paragraph/zmi/html.py
--- a/src/pyams_content/component/paragraph/zmi/html.py	Thu Sep 21 12:44:37 2017 +0200
+++ b/src/pyams_content/component/paragraph/zmi/html.py	Thu Sep 21 14:30:37 2017 +0200
@@ -143,7 +143,7 @@
     def get_ajax_output(self, changes):
         output = super(HTMLParagraphPropertiesAJAXEditForm, self).get_ajax_output(changes)
         if 'body' in changes.get(IHTMLParagraph, ()):
-            associations_table = AssociationsTable(self.context, self.request, None)
+            associations_table = AssociationsTable(self.context, self.request)
             associations_table.update()
             output.setdefault('events', []).append({
                 'event': 'PyAMS_content.changed_item',
@@ -177,7 +177,7 @@
     def get_ajax_output(self, changes):
         output = super(HTMLParagraphInnerAJAXEditForm, self).get_ajax_output(changes)
         if 'body' in changes.get(IHTMLParagraph, ()):
-            associations_table = AssociationsTable(self.context, self.request, None)
+            associations_table = AssociationsTable(self.context, self.request)
             associations_table.update()
             output.setdefault('events', []).append({
                 'event': 'PyAMS_content.changed_item',