From da420e585bf8b250ef43cce1f356e7309353a6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 9 Mar 2024 10:49:27 +0100 Subject: [PATCH] Do not fail on input completion when source is an Array Closes #13088 (grafted from 0d99c0394ebc50547cd18570833e68d908791300) --HG-- branch : 6.0 --- sao/src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sao/src/common.js b/sao/src/common.js index cc22ad5ead..1163acd90c 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -3617,7 +3617,7 @@ } var prm; if (this.source instanceof Array) { - prm = jQuery.when(source.filter(function(value) { + prm = jQuery.when(this.source.filter(function(value) { return value.toLowerCase().startsWith(text.toLowerCase()); })); } else {