1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-30 07:50:47 +00:00

Fix problem with transcluding non-string fields

Transcluding date or list fields (like `modified` or `tags`) was
crashing.
This commit is contained in:
Jermolene 2013-12-11 15:51:32 +00:00
parent 2e188a48f4
commit 6a71b399b0

View File

@ -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);