handlerpageedit: Retain comment when clicking preview

This commit is contained in:
2021-03-08 11:37:45 +01:00
parent 00392e2469
commit e4562809a0
3 changed files with 5 additions and 5 deletions

View File

@ -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;