Fix logic operator issue (#104)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2023-03-15 22:41:25 +05:30
committed by GitHub
parent 5df4488c25
commit 825492bf45
2 changed files with 35 additions and 1 deletions

View File

@@ -562,7 +562,7 @@ class FormPropertyLogicRule implements Rule, DataAwareRule
private function checkConditions($conditions)
{
if (isset($conditions['operatorIdentifier'])) {
if (array_key_exists('operatorIdentifier', $conditions)) {
if (($conditions['operatorIdentifier'] !== 'and') && ($conditions['operatorIdentifier'] !== 'or')) {
$this->conditionErrors[] = 'missing operator';
$this->isConditionCorrect = false;