kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fixed problem with getTextReference() not always returning a string
rodzic
562591912e
commit
31a4b96f57
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue