Wait on parsing boolean attributes with ${row} if we're not actually in a row, same as string attributes.

Fixes boolean attributes don't follow $row values
This commit is contained in:
nathan 2022-03-09 10:16:40 -07:00
parent d8517edafa
commit 4d25d2ea8b

View File

@ -351,6 +351,13 @@ export class et2_arrayMgr
parseBoolExpression(_expression : string)
{
// 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\}?/))
{
return _expression;
}
// If the first char of the expression is a '!' this means, that the value
// is to be negated.
if(_expression.charAt(0) == '!')