This commit is contained in:
Henry Jordan
2021-09-22 20:56:26 +00:00
6 changed files with 35 additions and 14 deletions

View File

@@ -814,7 +814,7 @@ class Cases
// Update case title
if (!empty($appUid) && !empty($appFields['APP_NUMBER']) && $appFields['APP_NUMBER'] > 0 && !empty($appFields['DEL_INDEX'])) {
$threadInfo = $this->updateThreadTitle($appUid, $appFields['APP_NUMBER'], $appFields['DEL_INDEX'], $appFields['APP_DATA']);
$threadInfo = $this->updateThreadTitle($appUid, $appFields['APP_NUMBER'], $appFields['DEL_INDEX'], $appData);
$Fields['APP_TITLE'] = $threadInfo['title'];
$Fields['APP_DESCRIPTION'] = $threadInfo['description'];
}

View File

@@ -403,11 +403,6 @@ class AppProxy extends HttpProxyController
'label' => G::LoadTranslation('ID_CASE_NUMBER') . ': ',
'value' => $appFields['APP_NUMBER'],
],
$i++ => [ // Case Title
'id' => 'CASE_TITLE',
'label' => G::LoadTranslation('ID_TASK_TITLE') . ': ',
'value' => $appFields['TITLE'],
],
$i++ => [ // Case Status
'id' => 'CASE_STATUS',
'label' => G::LoadTranslation('ID_CASE_STATUS') . ': ',
@@ -420,7 +415,7 @@ class AppProxy extends HttpProxyController
],
$i++ => [ // Delegate Date
'id' => 'DEL_DELEGATE_DATE',
'label' => G::LoadTranslation('DEL_DELEGATE_DATE') . ': ',
'label' => G::LoadTranslation('ID_TASK_DELEGATE_DATE') . ': ',
'value' => DateTime::convertUtcToTimeZone($delegateDateLabel),
],
$i++ => [ // Duration

View File

@@ -1830,6 +1830,10 @@ class Light extends Api
try {
$usr_uid = $this->getUserId();
$cases = new BusinessModelCases();
//for propel connection is required $_SESSION['PROCESS']
if (!empty($pro_uid)) {
$_SESSION['PROCESS'] = $pro_uid;
}
$response = $cases->getCaseVariables($app_uid, $usr_uid, $dyn_uid, $pro_uid, $act_uid, $app_index);
return DateTime::convertUtcToTimeZone($response);