From 1362c8af98651c077873aedd678fe3fc11924b46 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Wed, 2 May 2018 20:29:50 +0200 Subject: [PATCH] fix draft recovering The actual draft text got lost when we changed to showing the diff instead of the full draft. --- inc/html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/html.php b/inc/html.php index fc55ffc12..7bd38ebda 100644 --- a/inc/html.php +++ b/inc/html.php @@ -315,6 +315,7 @@ function html_draft(){ $form = new Doku_Form(array('id' => 'dw__editform')); $form->addHidden('id', $ID); $form->addHidden('date', $draft['date']); + $form->addHidden('wikitext', $text); $form->addElement(form_makeOpenTag('div', array('id'=>'draft__status'))); $form->addElement($lang['draftdate'].' '. dformat(filemtime($INFO['draft']))); $form->addElement(form_makeCloseTag('div')); -- GitLab