Updated JSON output of site folder properties form
authorThierry Florac <tflorac@ulthar.net>
Wed, 10 Feb 2021 13:09:44 +0100
changeset 1459 15e7cb820128
parent 1458 e79b38390bdc
child 1460 48d96b3c3fd9
Updated JSON output of site folder properties form
src/pyams_content/shared/site/zmi/folder.py
--- a/src/pyams_content/shared/site/zmi/folder.py	Thu Feb 04 10:39:17 2021 +0100
+++ b/src/pyams_content/shared/site/zmi/folder.py	Wed Feb 10 13:09:44 2021 +0100
@@ -26,7 +26,7 @@
 from pyams_content.shared.site.interfaces import ISiteContainer, ISiteFolder, ISiteManager
 from pyams_content.shared.site.zmi.widget import SiteManagerFoldersSelectorFieldWidget
 from pyams_content.zmi.interfaces import ISiteTreeTable
-from pyams_form.form import AJAXAddForm, ajax_config
+from pyams_form.form import AJAXAddForm, AJAXEditForm, ajax_config
 from pyams_form.group import NamedWidgetsGroup
 from pyams_form.interfaces.form import IInnerSubForm
 from pyams_i18n.interfaces import II18n, INegotiator
@@ -211,7 +211,7 @@
                 'message': self.request.localizer.translate(self.successMessage)
             }
         else:
-            return super(SiteFolderPropertiesEditForm, self).get_ajax_output(changes)
+            return AJAXEditForm.get_ajax_output(self, changes)
 
 
 @adapter_config(name='navigation',