From d50e2df57bdc4989ff120e0e9253a79416bde69b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 14 Oct 2018 15:35:26 +0100 Subject: [PATCH] Syncer: fix problem with incoming tiddlers The bug here is that incoming tiddlers (ie tiddlers that were updated on the server and synced back to the browser) will retain any fields that are currently present but deleted in the incoming tiddler --- core/modules/syncer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/syncer.js b/core/modules/syncer.js index e6d86ea61..5e1a8f415 100644 --- a/core/modules/syncer.js +++ b/core/modules/syncer.js @@ -153,7 +153,7 @@ Save an incoming tiddler in the store, and updates the associated tiddlerInfo */ Syncer.prototype.storeTiddler = function(tiddlerFields,hasBeenLazyLoaded) { // Save the tiddler - var tiddler = new $tw.Tiddler(this.wiki.getTiddler(tiddlerFields.title),tiddlerFields); + var tiddler = new $tw.Tiddler(tiddlerFields); this.wiki.addTiddler(tiddler); // Save the tiddler revision and changeCount details this.tiddlerInfo[tiddlerFields.title] = {