From 6a71b399b0aea3e1c5df154c7d0813620bc1edde Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 11 Dec 2013 15:51:32 +0000 Subject: [PATCH] Fix problem with transcluding non-string fields Transcluding date or list fields (like `modified` or `tags`) was crashing. --- core/modules/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index d51f133fc..e997576fa 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -757,7 +757,7 @@ exports.parseTextReference = function(title,field,index,options) { if(text === undefined) { text = ""; } - return this.parseText("text/vnd.tiddlywiki",text,options); + return this.parseText("text/vnd.tiddlywiki",text.toString(),options); } else if(index) { text = this.extractTiddlerDataItem(title,index,""); return this.parseText("text/vnd.tiddlywiki",text,options);