Updated custom "update_content" methods for last PyAMS_form package
authorThierry Florac <thierry.florac@onf.fr>
Fri, 30 Mar 2018 15:38:11 +0200
changeset 504 2c0c2f13789b
parent 503 264f9b53a714
child 505 e60b9a60b546
Updated custom "update_content" methods for last PyAMS_form package
src/pyams_content/shared/site/zmi/link.py
--- a/src/pyams_content/shared/site/zmi/link.py	Fri Mar 30 09:12:24 2018 +0200
+++ b/src/pyams_content/shared/site/zmi/link.py	Fri Mar 30 15:38:11 2018 +0200
@@ -94,6 +94,7 @@
         return ContentLink()
 
     def update_content(self, content, data):
+        data = data.get(self, data)
         content.reference = data.get('reference')
         content.alt_title = data['alt_title']
         intids = get_utility(IIntIds)