From 8471a2217ae22056366feca70c6a7b46486f6303 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 13 Jun 2013 09:16:26 +0100 Subject: [PATCH] Improve handling of fieldmodules lacking a stringify method --- core/modules/tiddler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/tiddler.js b/core/modules/tiddler.js index 668022b21..0189b89dd 100644 --- a/core/modules/tiddler.js +++ b/core/modules/tiddler.js @@ -28,7 +28,7 @@ exports.getFieldString = function(field) { } // Parse the field with the associated module (if any) var fieldModule = $tw.Tiddler.fieldModules[field]; - if(fieldModule) { + if(fieldModule && fieldModule.stringify) { return fieldModule.stringify.call(this,value); } else { return value.toString();