Merged in bugfix/PMCORE-3317 (pull request #8132)

PMCORE-3317

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Paula Quispe
2021-09-15 19:06:12 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 4 additions and 4 deletions

View File

@@ -181,12 +181,12 @@ class Participated extends AbstractCases
// Get the pending task
$taskPending = Delegation::getPendingThreads($item['APP_NUMBER'], false);
$result = [];
$result['THREAD_TASKS'] = [];
$result['THREAD_TITLES'] = [];
foreach ($taskPending as $thread) {
$thread['APP_STATUS'] = $item['APP_STATUS'];
// Get the thread information
$information = $this->threadInformation($thread);
$result['THREAD_TASKS'] = [];
$result['THREAD_TITLES'] = [];
$result['THREAD_TASKS'][] = $information['THREAD_TASK'];
$result['THREAD_TITLES'][] = $information['THREAD_TITLE'];
}

View File

@@ -156,11 +156,11 @@ class Supervising extends AbstractCases
// Get the detail related to the open thread
$taskPending = Delegation::getPendingThreads($item['APP_NUMBER']);
$result = [];
$result['THREAD_TASKS'] = [];
$result['THREAD_TITLES'] = [];
foreach ($taskPending as $thread) {
$thread['APP_STATUS'] = $item['APP_STATUS'];
$information = $this->threadInformation($thread);
$result['THREAD_TASKS'] = [];
$result['THREAD_TITLES'] = [];
$result['THREAD_TASKS'][] = $information['THREAD_TASK'];
$result['THREAD_TITLES'][] = $information['THREAD_TITLE'];
}