Merged in bugfix/PMCORE-2529 (pull request #7603)
PMCORE-2529 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
9c1f954cfd
@@ -607,6 +607,10 @@ class TimerEvent
|
||||
//Create
|
||||
$cnn = \Propel::getConnection("workflow");
|
||||
|
||||
$evnUid = $arrayData['EVN_UID'];
|
||||
$caseTitle = $arrayData['CASETITLE'];
|
||||
Task::setTaskDefTitle($evnUid, $caseTitle);
|
||||
|
||||
$arrayData = $this->unsetFields($arrayData);
|
||||
|
||||
try {
|
||||
|
||||
@@ -157,7 +157,6 @@ class Task extends Model
|
||||
$join->on('ELEMENT_TASK_RELATION.TAS_UID', '=', 'TASK.TAS_UID')
|
||||
->where('ELEMENT_TASK_RELATION.ELEMENT_UID', '=', $evnUid);
|
||||
});
|
||||
|
||||
$query->update(['TASK.TAS_DEF_TITLE' => $caseTitle]);
|
||||
|
||||
return $query;
|
||||
@@ -178,6 +177,11 @@ class Task extends Model
|
||||
->where('ELEMENT_TASK_RELATION.ELEMENT_UID', '=', $evnUid);
|
||||
});
|
||||
|
||||
return $query->get()->values()->toArray()['0']['TAS_DEF_TITLE'];
|
||||
$res = $query->first();
|
||||
if(is_null($res)) {
|
||||
return "";
|
||||
} else {
|
||||
return $res->TAS_DEF_TITLE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user