Fixed creating customer_passive_finished wf value on save
This commit is contained in:
@@ -248,8 +248,10 @@ class LineworkController extends mfBaseController {
|
||||
}
|
||||
|
||||
$item = WorkflowitemModel::getFirst(["name" => "customer_passive_finished", "object_type" => "termination"]);
|
||||
if(!$item->value) {
|
||||
$item->setObjectId($termination_id);
|
||||
$item->setObjectId($termination_id);
|
||||
|
||||
if(!$item->value->id) {
|
||||
$this->log->debug(__CLASS__."::save(): creating new value 0 for workflowitem because value of customer_passive_finished does not exist yet");
|
||||
$item->value->value_int = 0;
|
||||
$item->value->save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user