mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03: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 "["
|
// Parse the given key by removing the "]"-chars and splitting at "["
|
||||||
var indexes = this.explodeKey(_key);
|
var indexes = this.explodeKey(_key);
|
||||||
|
if (indexes.length == 0 && _skipEmpty)
|
||||||
|
return null;
|
||||||
var entry = this.data;
|
var entry = this.data;
|
||||||
for (var i = 0; i < indexes.length; i++) {
|
for (var i = 0; i < indexes.length; i++) {
|
||||||
// Abort if the current entry is not an object (associative array) and
|
// 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 "["
|
// Parse the given key by removing the "]"-chars and splitting at "["
|
||||||
const indexes = this.explodeKey(_key);
|
const indexes = this.explodeKey(_key);
|
||||||
|
if(indexes.length == 0 && _skipEmpty) return null;
|
||||||
|
|
||||||
let entry = this.data;
|
let entry = this.data;
|
||||||
for (let i = 0; i < indexes.length; i++) {
|
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) {
|
this.input.on('liszt:ready', function (evt, params) {
|
||||||
debugger;
|
|
||||||
this.set_statustext(this.statustext);
|
this.set_statustext(this.statustext);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
this.input.chosen({
|
this.input.chosen({
|
||||||
|
@ -849,7 +849,6 @@ export class et2_selectbox extends et2_inputWidget
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.input.on('liszt:ready', function(evt, params) {
|
this.input.on('liszt:ready', function(evt, params) {
|
||||||
debugger;
|
|
||||||
this.set_statustext(this.statustext);
|
this.set_statustext(this.statustext);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
this.input.chosen({
|
this.input.chosen({
|
||||||
|
Loading…
Reference in New Issue
Block a user