From 75507f0b63b7e4b816c2828c79d7744dfa0ee349 Mon Sep 17 00:00:00 2001 From: pmario Date: Tue, 4 Feb 2025 09:44:27 +0100 Subject: [PATCH] fix contains operator RSOD if created field is accessed --- core/modules/tiddler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/tiddler.js b/core/modules/tiddler.js index b0b6e6942..d8d67bf77 100644 --- a/core/modules/tiddler.js +++ b/core/modules/tiddler.js @@ -40,10 +40,10 @@ exports.getFieldString = function(field,defaultValue) { }; /* -Get the value of a field as a list +Get the value of a field as an array / list */ exports.getFieldList = function(field) { - var value = this.fields[field]; + var value = this.getFieldString(field,null); // Check for a missing field if(value === undefined || value === null) { return [];