Skip to content
Snippets Groups Projects
Commit 4c48f210 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #19031 TIME 0:05 fix History: undefined key

parent 7510f5db
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,9 @@ class HistoryController
$objects = array_column($objects, 'title', 'id');
foreach ($filteredHistoryIds as $key => $objectId) {
$history[$key]['label'] = $objects[$objectId];
if (!empty($key)) {
$history[$key]['label'] = $objects[$objectId];
}
}
}
}
......@@ -433,7 +435,7 @@ class HistoryController
}
$queryParams = $request->getQueryParams();
if (!empty($queryParams['onlyProof']) && (!$queryParams['onlyProof'] || empty($proofDocument))) {
if (!$queryParams['onlyProof'] || empty($proofDocument)) {
$formattedHistory = HistoryController::getFormattedHistory(['id' => $args['id']]);
$historyXml = HistoryController::arrayToXml(['data' => $formattedHistory['formattedHistory'], 'xml' => false]);
$historyXmlPath = $tmpPath . 'maarchProof' . $GLOBALS['id'] . "_" . rand() . '.xml';
......@@ -487,7 +489,8 @@ class HistoryController
}
}
}
if (!empty($queryParams['onlyProof']) && !$queryParams['onlyProof']) {
if (!$queryParams['onlyProof']) {
if ($workflowCompleted && ($queryParams['eSignDocument'] ?? $hasCertificate)) {
$contentType = 'ESIGN';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment