removing passive finish when required field is empty
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user