# HG changeset patch # User Thierry Florac # Date 1512728365 -3600 # Node ID 605900ea3781537cbbedc071d4d7857144bc2013 # Parent 7c67d484b5e8ddc4c8c49789f7263aa85878137a Corrected component diff -r 7c67d484b5e8 -r 605900ea3781 src/pyams_content_es/component/extfile.py --- a/src/pyams_content_es/component/extfile.py Fri Nov 10 13:24:51 2017 +0100 +++ b/src/pyams_content_es/component/extfile.py Fri Dec 08 11:19:25 2017 +0100 @@ -34,7 +34,7 @@ for paragraph in IParagraphContainer(context).values(): associations = IAssociationContainer(paragraph, {}) for extfile in associations.values(): - if not IBaseExtFile.providedBy(extfile): + if not (IBaseExtFile.providedBy(extfile) and extfile.data): continue extfiles.append({'title': extfile.title, 'description': extfile.description})