forked from extern/egroupware
Fix attributes referencing not-set content evaluated as true
This commit is contained in:
parent
85082b08f2
commit
fe4eb42fca
@ -275,7 +275,8 @@ var et2_arrayMgr = /** @class */ (function () {
|
||||
// Split the expression at a possible "="
|
||||
var parts = _expression.split('=');
|
||||
// Expand the first value
|
||||
var val = '' + this.expandName(parts[0]);
|
||||
var val = this.expandName(parts[0]);
|
||||
val = typeof val == "undefined" ? '' : '' + val;
|
||||
// If a second expression existed, test that one
|
||||
if (typeof parts[1] != "undefined") {
|
||||
// Expand the second value
|
||||
|
@ -297,7 +297,8 @@ export class et2_arrayMgr
|
||||
const parts = _expression.split('=');
|
||||
|
||||
// Expand the first value
|
||||
const val = '' + this.expandName(parts[0]);
|
||||
let val = this.expandName(parts[0]);
|
||||
val = typeof val == "undefined" ? '' : '' + val;
|
||||
|
||||
// If a second expression existed, test that one
|
||||
if (typeof parts[1] != "undefined") {
|
||||
|
Loading…
Reference in New Issue
Block a user