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;