mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
fix calendar.edit wont open, caused by new hidden attribute:
- parent can be undefined - typo parent.getArr(a)yMgr() - parseBoolExpression() does NOT support boolean values - returning null gives errors later on, commented it out for now :(
This commit is contained in:
parent
92cf528fe8
commit
e3138fe886
@ -1457,9 +1457,9 @@ export function loadWebComponent(_nodeName : string, _template_node : Element|{[
|
||||
}
|
||||
|
||||
// Don't need to create hidden elements
|
||||
if(parent.hidden || attrs["hidden"] && parent.getArrayMgr("content") && parent.getArryMgr("content").parseBoolExpression(attrs["hidden"]))
|
||||
if(parent?.hidden || attrs["hidden"] && parent?.getArrayMgr("content") && parent.getArrayMgr("content").parseBoolExpression(attrs["hidden"]))
|
||||
{
|
||||
return null;
|
||||
//return null;
|
||||
}
|
||||
|
||||
const readonly = parent?.getArrayMgr("readonlys") ?
|
||||
|
@ -349,8 +349,13 @@ export class et2_arrayMgr
|
||||
return _ident;
|
||||
}
|
||||
|
||||
parseBoolExpression(_expression : string)
|
||||
parseBoolExpression(_expression : string|number|boolean|undefined)
|
||||
{
|
||||
if (typeof _expression === "boolean")
|
||||
{
|
||||
return _expression;
|
||||
}
|
||||
|
||||
if(typeof _expression === "undefined" || _expression === null)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user