From 2a735055086ade1e7b47c006cc9da350fd41e052 Mon Sep 17 00:00:00 2001 From: Joshua Fontany Date: Wed, 27 Oct 2021 03:15:30 -0700 Subject: [PATCH] Fix overwriting of modification fields when PUTting a tiddler #6075 (#6084) * call self.displayError * Revert "call self.displayError" This reverts commit 5d599aa9795f9d816c55378ab6df0a1a691ceed0. * fix PUT bug with created/modified fields --- core/modules/server/routes/put-tiddler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/server/routes/put-tiddler.js b/core/modules/server/routes/put-tiddler.js index f1148e247..2966d6e00 100644 --- a/core/modules/server/routes/put-tiddler.js +++ b/core/modules/server/routes/put-tiddler.js @@ -30,7 +30,7 @@ exports.handler = function(request,response,state) { if(fields.revision) { delete fields.revision; } - state.wiki.addTiddler(new $tw.Tiddler(state.wiki.getCreationFields(),fields,{title: title},state.wiki.getModificationFields())); + state.wiki.addTiddler(new $tw.Tiddler(fields,{title: title})); var changeCount = state.wiki.getChangeCount(title).toString(); response.writeHead(204, "OK",{ Etag: "\"default/" + encodeURIComponent(title) + "/" + changeCount + ":\"",