mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
formula parser fixes
This commit is contained in:
@@ -298,6 +298,11 @@ class Parser
|
||||
!$lastStatement->isEndedWithSemicolon()
|
||||
) {
|
||||
array_pop($statementList);
|
||||
} else if (
|
||||
$lastStatement instanceof StatementRef &&
|
||||
!$lastStatement->isEndedWithSemicolon()
|
||||
) {
|
||||
$lastStatement->setEnd(strlen($string));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -395,7 +400,10 @@ class Parser
|
||||
}
|
||||
|
||||
if (
|
||||
$parenthesisCounter === 0 &&
|
||||
(
|
||||
$parenthesisCounter === 0 ||
|
||||
$parenthesisCounter === 1 && $char === '('
|
||||
) &&
|
||||
$braceCounter === 0
|
||||
) {
|
||||
if ($isLineComment || $isComment) {
|
||||
|
||||
Reference in New Issue
Block a user