From e4562809a030eb00b4bbb1606c41c09e67db6e3c Mon Sep 17 00:00:00 2001 From: Albert S Date: Mon, 8 Mar 2021 11:37:45 +0100 Subject: [PATCH] handlerpageedit: Retain comment when clicking preview --- handlers/handlerpageedit.cpp | 2 +- template/quitesimple/page_creation | 4 ++-- template/quitesimple/page_creation_preview | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/handlers/handlerpageedit.cpp b/handlers/handlerpageedit.cpp index 8231bc1..492e36f 100644 --- a/handlers/handlerpageedit.cpp +++ b/handlers/handlerpageedit.cpp @@ -114,7 +114,7 @@ Response HandlerPageEdit::handleRequest(PageDao &pageDao, std::string pagename, templatePage.setVar("content", newContent); setPageVars(templatePage, pagename); templatePage.setVar("title", createPageTitle("Preview: " + pagename)); - + templatePage.setVar("comment", r.post("comment")); Response response; response.setBody(templatePage.render()); return response; diff --git a/template/quitesimple/page_creation b/template/quitesimple/page_creation index 35981f0..2c65da2 100644 --- a/template/quitesimple/page_creation +++ b/template/quitesimple/page_creation @@ -5,10 +5,10 @@
Comment:
-
+
-{qswiki:include:general_footer} \ No newline at end of file +{qswiki:include:general_footer} diff --git a/template/quitesimple/page_creation_preview b/template/quitesimple/page_creation_preview index f765d83..f45251d 100644 --- a/template/quitesimple/page_creation_preview +++ b/template/quitesimple/page_creation_preview @@ -8,10 +8,10 @@ This is a preview of your changes:

Comment:
-
+
-{qswiki:include:general_footer} \ No newline at end of file +{qswiki:include:general_footer}