PMCORE-3400

This commit is contained in:
Paula Quispe
2021-10-05 15:51:43 -04:00
parent 8b283d79d7
commit 3aa0a1a583
7 changed files with 51 additions and 27 deletions

View File

@@ -1090,7 +1090,9 @@ class Derivation
// Load Case Data again because the information could be change in method "doDerivation"
$lastData = $this->case->loadCase($appUid);
// Update the thread title related to the last index created
$this->case->updateThreadTitle($appUid, $lastData['APP_NUMBER'], $iNewDelIndex, $lastData['APP_DATA']);
if (!is_null($iNewDelIndex)) {
$this->case->updateThreadTitle($appUid, $lastData['APP_NUMBER'], $iNewDelIndex, $lastData['APP_DATA']);
}
$appFields['APP_DATA'] = $lastData['APP_DATA'];
// When the users route the case in the same time
if($iNewDelIndex !== 0) {