From 31a4b96f57cb11a4d0c68c142e2fbbbf60536072 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 27 May 2013 17:55:23 +0100 Subject: [PATCH] Fixed problem with getTextReference() not always returning a string --- 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 4149eb290..8fbc15bcc 100644 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -37,7 +37,7 @@ exports.getTextReference = function(textRef,defaultText,currTiddlerTitle) { if(tr.field) { var tiddler = this.getTiddler(title); if(tiddler && $tw.utils.hop(tiddler.fields,tr.field)) { - return tiddler.fields[tr.field]; + return tiddler.getFieldString(tr.field); } else { return defaultText; }