Etemplate: Bugfixes

- Early exit for arrayMgr().getEntry() if nothing is found, avoids returning all data
- Remove debugger from selectbox
This commit is contained in:
nathangray
2021-01-04 11:00:10 -07:00
parent 5c10576b3b
commit cf9c366d2b
4 changed files with 3 additions and 2 deletions

View File

@ -178,6 +178,8 @@ var et2_arrayMgr = /** @class */ (function () {
}
// Parse the given key by removing the "]"-chars and splitting at "["
var indexes = this.explodeKey(_key);
if (indexes.length == 0 && _skipEmpty)
return null;
var entry = this.data;
for (var i = 0; i < indexes.length; i++) {
// Abort if the current entry is not an object (associative array) and