handlerpageedit: Retain comment when clicking preview

这个提交包含在:
2021-03-08 11:37:45 +01:00
父节点 00392e2469
当前提交 e4562809a0
共有 3 个文件被更改,包括 5 次插入5 次删除

查看文件

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