Merged in bugfix/PMCORE-3445 (pull request #8241)

PMCORE-3445

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2021-10-25 20:42:50 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -78,7 +78,12 @@ class Participated extends AbstractCases
}
// Specific task
if ($this->getTaskId()) {
$query->task($this->getTaskId());
$queryTask = Delegation::query()->select('APP_NUMBER');
$queryTask->task($this->getTaskId());
$results = $queryTask->get();
$result = $results->values()->toArray();
// Filter the cases related to the specific task
$query->specificCases($result);
}
// Specific status
if ($this->getCaseStatus()) {