From c9852506b090a33d403f39c8a2091c38c73423fe 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 : 7.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 bd712ae48d..f4b04fba44 100644 --- a/sao/src/common.js +++ b/sao/src/common.js @@ -3802,7 +3802,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 {