From a17c5bf39403f834d71114452279389aa57e790b Mon Sep 17 00:00:00 2001 From: JoshuaLicense Date: Fri, 2 Feb 2024 11:08:32 +0000 Subject: [PATCH] fix: fix error on EBSR pages (dvsa/olcs-selfserve#47) * fix: fix invalid constant reference * fix: fix invalid partial view path --- .../module/Olcs/src/Table/Tables/txc-inbox.table.php | 2 +- .../module/Olcs/view/olcs/ebsr/uploads/detail.phtml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/selfserve/module/Olcs/src/Table/Tables/txc-inbox.table.php b/app/selfserve/module/Olcs/src/Table/Tables/txc-inbox.table.php index 9b7236432d..f3e6842445 100644 --- a/app/selfserve/module/Olcs/src/Table/Tables/txc-inbox.table.php +++ b/app/selfserve/module/Olcs/src/Table/Tables/txc-inbox.table.php @@ -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 ''; diff --git a/app/selfserve/module/Olcs/view/olcs/ebsr/uploads/detail.phtml b/app/selfserve/module/Olcs/view/olcs/ebsr/uploads/detail.phtml index 6857b6e6fe..619281fb9b 100644 --- a/app/selfserve/module/Olcs/view/olcs/ebsr/uploads/detail.phtml +++ b/app/selfserve/module/Olcs/view/olcs/ebsr/uploads/detail.phtml @@ -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; @@ -26,11 +26,11 @@ ] ); ?> - +
render($childView, ['documentUrl' => $documentUrl, 'ebsrSubmission' => $ebsrSubmission]); ?>
- \ No newline at end of file +