From 9bc523fdefd0c4e6f43bb5b9dddfbb41414e2c38 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 8 Feb 2017 20:04:36 +0000 Subject: [PATCH] Fix bug in renameTiddler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This operation isn’t used by the core, but is used by the TextSlicer plugin --- core/modules/wiki-bulkops.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/wiki-bulkops.js b/core/modules/wiki-bulkops.js index 4708977e9..ce660048f 100644 --- a/core/modules/wiki-bulkops.js +++ b/core/modules/wiki-bulkops.js @@ -16,7 +16,6 @@ Bulk tiddler operations such as rename. Rename a tiddler, and relink any tags or lists that reference it. */ function renameTiddler(fromTitle,toTitle,options) { - var self = this; fromTitle = (fromTitle || "").trim(); toTitle = (toTitle || "").trim(); options = options || {}; @@ -26,7 +25,7 @@ function renameTiddler(fromTitle,toTitle,options) { this.addTiddler(new $tw.Tiddler(tiddler,{title: toTitle},this.getModificationFields())); this.deleteTiddler(fromTitle); // Rename any tags or lists that reference it - relinkTiddler(fromTitle,toTitle,options) + this.relinkTiddler(fromTitle,toTitle,options) } }