Skip to content
Snippets Groups Projects
Commit c5d9a88f authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #12478 wrong date in workflow

parent 5c554605
No related branches found
No related tags found
No related merge requests found
...@@ -172,7 +172,7 @@ class DocumentController ...@@ -172,7 +172,7 @@ class DocumentController
$currentFound = false; $currentFound = false;
foreach ($workflow as $value) { foreach ($workflow as $value) {
if (!empty($value['process_date'])) { if (!empty($value['process_date'])) {
$date = new \DateTime($document['process_date']); $date = new \DateTime($value['process_date']);
$value['process_date'] = $date->format('d-m-Y H:i'); $value['process_date'] = $date->format('d-m-Y H:i');
} }
$formattedDocument['workflow'][] = [ $formattedDocument['workflow'][] = [
...@@ -426,7 +426,7 @@ class DocumentController ...@@ -426,7 +426,7 @@ class DocumentController
$configPath = CoreConfigModel::getConfigPath(); $configPath = CoreConfigModel::getConfigPath();
$overrideFile = "{$configPath}/override/setasign/fpdi_pdf-parser/src/autoload.php"; $overrideFile = "{$configPath}/override/setasign/fpdi_pdf-parser/src/autoload.php";
if (file_exists($overrideFile)) { if (file_exists($overrideFile)) {
require_once ($overrideFile); require_once($overrideFile);
} }
$pdf = new Fpdi('P'); $pdf = new Fpdi('P');
$nbPages = $pdf->setSourceFile($tmpFilename); $nbPages = $pdf->setSourceFile($tmpFilename);
......
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