PMCORE-1262

This commit is contained in:
Julio Cesar Laura Avendaño
2020-03-10 09:14:17 -04:00
parent 9a4e0875f7
commit 4e0ab290a9

View File

@@ -534,9 +534,10 @@ class Delegation extends Model
$selfServiceTasks = TaskUser::getSelfServicePerUser($usrUid);
if (!empty($selfServiceTasks)) {
// Start the first query
// Start the second query
$query2 = Delegation::query()->select('APP_NUMBER');
$query2->tasksIn($selfServiceTasks);
$query2->isThreadOpen();
$query2->noUserInThread();
// Build the complex query that uses "UNION DISTINCT" clause