Przeglądaj źródła

HUE-1745 [beeswax] Autocomplete table name with magic from broken

Changed substring because of new font awesome names
Enrico Berti 12 lat temu
rodzic
commit
b7570f4d5c

+ 1 - 1
desktop/core/static/js/codemirror-hql-hint.js

@@ -97,7 +97,7 @@
     function maybeAddToExtra(str) {
       var _match = str;
       if (_match.indexOf("fa-magic") > -1) {
-        _match = _match.substring(32);
+        _match = _match.substring(_match.indexOf("FROM ") + 5);
       }
       if (_match.indexOf(start) == 0 && !arrayContains(found, str)) extraFound.push(str);
     }

+ 1 - 1
desktop/core/static/js/codemirror-isql-hint.js

@@ -97,7 +97,7 @@
     function maybeAddToExtra(str) {
       var _match = str;
       if (_match.indexOf("fa-magic") > -1) {
-        _match = _match.substring(32);
+        _match = _match.substring(_match.indexOf("FROM ") + 5);
       }
       if (_match.indexOf(start) == 0 && !arrayContains(found, str)) extraFound.push(str);
     }