From 440130c27f093de3ac102a04c46ca6f04d165402 Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Mon, 13 Jun 2016 13:31:38 -0400
Subject: [PATCH] Autocomplete var rename bug fix.

---
 themes/bootstrap3/js/autocomplete.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/bootstrap3/js/autocomplete.js b/themes/bootstrap3/js/autocomplete.js
index b148bb4cf3a..5e698fd2fe3 100644
--- a/themes/bootstrap3/js/autocomplete.js
+++ b/themes/bootstrap3/js/autocomplete.js
@@ -46,7 +46,7 @@
 
   function createList(fulldata, input) {
     // Limit results
-    var data = fulldata.slice(0, Math.min(options.maxResults, data.length));
+    var data = fulldata.slice(0, Math.min(options.maxResults, fulldata.length));
     input.data('length', data.length);
     // highlighting setup
     // escape term for regex - https://github.com/sindresorhus/escape-string-regexp/blob/master/index.js
-- 
GitLab