Field Logic Error Handling - frontend (#162)

* Field Logic Error Handling - frontend

* Fix test case

* fix expected_type for multi select

* fix variable

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
formsdev
2023-08-30 16:58:52 +05:30
committed by GitHub
parent ec26c211d6
commit 057bfde8b7
6 changed files with 184 additions and 11 deletions

View File

@@ -605,6 +605,8 @@ class FormPropertyLogicRule implements Rule, DataAwareRule
break;
}
}
} else {
$this->isActionCorrect = false;
}
}
@@ -620,10 +622,9 @@ class FormPropertyLogicRule implements Rule, DataAwareRule
$this->setProperty($attribute);
if(isset($value["conditions"])){
$this->checkConditions($value["conditions"]);
$this->checkActions($value['actions'] ?? null);
}
if(isset($value["actions"])){
$this->checkActions($value["actions"]);
}
return ($this->isConditionCorrect && $this->isActionCorrect);
}