PMCORE-2525

This commit is contained in:
Andrea Adamczyk
2020-12-11 17:36:07 -04:00
parent fe3528113c
commit ae1d7d5075
2 changed files with 52 additions and 13 deletions

View File

@@ -789,7 +789,8 @@ class Delegation extends Model
{
// Add join for application, for get the case title when the case status is DRAFT
$query->joinApplication();
$query->status(Application::STATUS_TODO);
$query->status(Application::STATUS_DRAFT);
$query->threadOpen();
// Case assigned to the user
$query->userId($user);