Corrected AJAX view context
authorThierry Florac <thierry.florac@onf.fr>
Fri, 08 Jun 2018 14:57:53 +0200
changeset 592 c4baa5f90aae
parent 591 b694d5667d17
child 593 5a9e74e11f4f
child 594 9386c04e9dec
Corrected AJAX view context
src/pyams_content/component/paragraph/zmi/pictogram.py
--- a/src/pyams_content/component/paragraph/zmi/pictogram.py	Fri Jun 08 10:33:23 2018 +0200
+++ b/src/pyams_content/component/paragraph/zmi/pictogram.py	Fri Jun 08 14:57:53 2018 +0200
@@ -310,7 +310,7 @@
 
 @pagelet_config(name='add-pictogram.html', context=IPictogramContainerTarget, layer=IPyAMSLayer,
                 permission=MANAGE_CONTENT_PERMISSION)
-@ajax_config(name='add-pictogram.json', context=IParagraphContainerTarget, layer=IPyAMSLayer,
+@ajax_config(name='add-pictogram.json', context=IPictogramContainerTarget, layer=IPyAMSLayer,
              base=AJAXAddForm)
 class PictogramAddForm(AdminDialogAddForm):
     """Pictogram add form"""