removing passive finish when required field is empty

This commit is contained in:
Frank Schubert
2021-09-16 22:19:28 +02:00
parent dab1836ba6
commit 1ba6cc3344
2 changed files with 77 additions and 19 deletions

View File

@@ -72,15 +72,19 @@ class Workflowvalue extends mfBaseModel {
}
}
/*if($this->item->name == "customer_passive_finished") {
var_dump($value, $this->{"value_".$value_type});exit;
}*/
if($value === null) {
return true;
}
if($value_type == "int" && !$value) {
if($value_type == "int" && $this->{"value_".$value_type} == null && !$value) {
return true;
}
if($this->item->type == "bool" && $this->{"value_".$value_type} = null && $value == 0) {
if($this->item->type == "bool" && $this->{"value_".$value_type} == null && $value == 0) {
return true;
}