Corrected function name
authorThierry Florac <thierry.florac@onf.fr>
Fri, 09 Mar 2018 12:35:35 +0100
changeset 454 1bd9d3cc2a7b
parent 453 54b33f61a697
child 455 95582493a5ac
Corrected function name
src/pyams_content/component/association/zmi/__init__.py
--- a/src/pyams_content/component/association/zmi/__init__.py	Fri Mar 09 12:32:58 2018 +0100
+++ b/src/pyams_content/component/association/zmi/__init__.py	Fri Mar 09 12:35:35 2018 +0100
@@ -195,8 +195,8 @@
 
 @view_config(name='set-association-visibility.json', context=IAssociationContainer, request_type=IPyAMSLayer,
              permission=MANAGE_CONTENT_PERMISSION, renderer='json', xhr=True)
-def set_paragraph_visibility(request):
-    """Set paragraph visibility"""
+def set_association_visibility(request):
+    """Set association visibility"""
     container = IAssociationContainer(request.context)
     association = container.get(str(request.params.get('object_name')))
     if association is None: