From 824e282b6fbd249dd6185792e4228fe2afa571c5 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 --- 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 64f562b93f..b879be2d59 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -3780,7 +3780,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 {