X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/blobdiff_plain/0f2a8853f243d533e0348c043c3e42175dcb17a5..ea19ea0d94a36596178937c02e149b94a39e2d72:/skins/custom_content/document_edit_form.py?ds=inline diff --git a/skins/custom_content/document_edit_form.py b/skins/custom_content/document_edit_form.py index d439bd7..8dffe34 100644 --- a/skins/custom_content/document_edit_form.py +++ b/skins/custom_content/document_edit_form.py @@ -20,9 +20,9 @@ if change and \ elif change_and_view and \ context.validateTextFile(**form) and \ context.validateHTML(**form) and \ - context.document_edit_control(text=form.get('text'), text_format='html') and \ - context.setRedirect(context, 'object/view', **{'ajax':ajax}): - return + context.document_edit_control(text=form.get('text'), text_format='html') : + attachments.removeUnusedAttachments(context.EditableBody()) + return context.setRedirect(context, 'object/view', **{'ajax':ajax}) options = {}