From 2a2d998bef4c700b3aa912a1b82cdcb8c2d7e151 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Fri, 14 Feb 2025 18:58:33 +0100 Subject: [PATCH] fix contains operator RSOD if created field is accessed (#8931) --- 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 [];