mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Handle parsing number into boolean expression
This commit is contained in:
parent
bd93964de3
commit
186a7d46dd
@ -351,11 +351,16 @@ export class et2_arrayMgr
|
||||
|
||||
parseBoolExpression(_expression : string)
|
||||
{
|
||||
if (typeof _expression === "undefined" || _expression === null)
|
||||
if(typeof _expression === "undefined" || _expression === null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if(typeof _expression === "number")
|
||||
{
|
||||
return !!_expression;
|
||||
}
|
||||
|
||||
// Check whether "$" occurs in the given identifier, don't parse rows if we're not in a row
|
||||
// This saves booleans in repeating rows from being parsed too early - we'll parse again when repeating
|
||||
if(_expression.indexOf('$') >= 0 && this.perspectiveData.row == null && _expression.match(/\$\{?row\}?/))
|
||||
|
Loading…
Reference in New Issue
Block a user