Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

fix: fix error on EBSR pages #47

Merged
merged 2 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion module/Olcs/src/Table/Tables/txc-inbox.table.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
'formatter' => function ($row) {
// DateTime formatter require data set at root of array
if (isset($row['busReg']['ebsrSubmissions'][0]['submittedDate'])) {
return date(\DATETIME_FORMAT, strtotime($row['busReg']['ebsrSubmissions'][0]['submittedDate']));
return date(Common\Module::$dateTimeFormat, strtotime($row['busReg']['ebsrSubmissions'][0]['submittedDate']));
}

return '';
Expand Down
10 changes: 5 additions & 5 deletions module/Olcs/view/olcs/ebsr/uploads/detail.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
);

if ($ebsrSubmission['isBeingProcessed']) {
$childView = 'olcs/uploads/partial/detail-processing';
$childView = './partial/detail-processing';
} elseif ($ebsrSubmission['isFailure']) {
$childView = 'olcs/uploads/partial/detail-failed';
$childView = './partial/detail-failed';
} elseif ($ebsrSubmission['isSuccess']) {
$childView = 'olcs/uploads/partial/detail-success';
$childView = './partial/detail-success';
} else {
echo'There is no additional information for this file'; //very basic handling of legacy until data is cleansed
return;
Expand All @@ -26,11 +26,11 @@
]
);
?>

<div class="row">
<div class="two-thirds">
<?php echo $this->render($childView, ['documentUrl' => $documentUrl, 'ebsrSubmission' => $ebsrSubmission]); ?>
</div>
</div>

</div>
</div>
Loading