mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
Etemplate: Bugfixes
- Early exit for arrayMgr().getEntry() if nothing is found, avoids returning all data - Remove debugger from selectbox
This commit is contained in:
parent
5c10576b3b
commit
cf9c366d2b
@ -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
|
||||
|
@ -190,6 +190,7 @@ export class et2_arrayMgr
|
||||
|
||||
// Parse the given key by removing the "]"-chars and splitting at "["
|
||||
const indexes = this.explodeKey(_key);
|
||||
if(indexes.length == 0 && _skipEmpty) return null;
|
||||
|
||||
let entry = this.data;
|
||||
for (let i = 0; i < indexes.length; i++) {
|
||||
|
@ -627,7 +627,6 @@ var et2_selectbox = /** @class */ (function (_super) {
|
||||
});
|
||||
}
|
||||
this.input.on('liszt:ready', function (evt, params) {
|
||||
debugger;
|
||||
this.set_statustext(this.statustext);
|
||||
}.bind(this));
|
||||
this.input.chosen({
|
||||
|
@ -849,7 +849,6 @@ export class et2_selectbox extends et2_inputWidget
|
||||
});
|
||||
}
|
||||
this.input.on('liszt:ready', function(evt, params) {
|
||||
debugger;
|
||||
this.set_statustext(this.statustext);
|
||||
}.bind(this));
|
||||
this.input.chosen({
|
||||
|
Loading…
Reference in New Issue
Block a user