From 0a487add0f49513241ce9394f52d03d557da99ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Thu, 28 Nov 2013 11:11:54 +0100 Subject: [PATCH] =?utf8?q?Bugfix=C2=A0:=20le=20format=20des=20documents=20?= =?utf8?q?est=20html=20pic=C3=A9tou=C2=A0!?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/custom_content/document_edit_form.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1