fix contains operator RSOD if created field is accessed (#8931)

This commit is contained in:
Mario Pietsch
2025-02-14 17:58:33 +00:00
committed by GitHub
parent 867fad030e
commit 2a2d998bef
+2 -2
View File
@@ -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 [];