mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Etemplate: Consider null as false when parsing boolean values into template attributes
This commit is contained in:
parent
0ed9b7dc09
commit
47a1437e1b
@ -278,7 +278,7 @@ var et2_arrayMgr = /** @class */ (function () {
|
||||
var parts = _expression.split('=');
|
||||
// Expand the first value
|
||||
var val = this.expandName(parts[0]);
|
||||
val = typeof val == "undefined" ? '' : '' + val;
|
||||
val = (typeof val == "undefined" || val === null) ? '' : '' + val;
|
||||
// If a second expression existed, test that one
|
||||
if (typeof parts[1] != "undefined") {
|
||||
// Expand the second value
|
||||
|
@ -301,7 +301,7 @@ export class et2_arrayMgr
|
||||
|
||||
// Expand the first value
|
||||
let val = this.expandName(parts[0]);
|
||||
val = typeof val == "undefined" ? '' : '' + val;
|
||||
val = (typeof val == "undefined" || val === null) ? '' : '' + val;
|
||||
|
||||
// If a second expression existed, test that one
|
||||
if (typeof parts[1] != "undefined") {
|
||||
|
Loading…
Reference in New Issue
Block a user