From: Benoît Pin Date: Thu, 28 Nov 2013 10:11:54 +0000 (+0100) Subject: Bugfix : le format des documents est html picétou ! X-Git-Url: https://scm.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/0a487add0f49513241ce9394f52d03d557da99ea?ds=inline Bugfix : le format des documents est html picétou ! --- diff --git a/skins/custom_content/document_edit_form.py b/skins/custom_content/document_edit_form.py index 82602ec..d652e57 100644 --- a/skins/custom_content/document_edit_form.py +++ b/skins/custom_content/document_edit_form.py @@ -11,13 +11,13 @@ if text and same_type(text, []) : if change and \ context.validateTextFile(**form) and \ context.validateHTML(**form) and \ - context.document_edit_control(**form) and \ + context.document_edit_control(text=form.get('text'), text_format='html') and \ context.setRedirect(context, 'object/edit', **{'ajax':ajax}): return elif change_and_view and \ context.validateTextFile(**form) and \ context.validateHTML(**form) and \ - context.document_edit_control(**form) and \ + context.document_edit_control(text=form.get('text'), text_format='html') and \ context.setRedirect(context, 'object/view', **{'ajax':ajax}): return