From b6765d352d0553eaae756d2594a4a0195a342349 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Tue, 31 Jan 2023 12:42:46 -0500 Subject: [PATCH] Bug 32676: Fix EDI message status case Edifact status appear to vary between all lower case and being capitalized. This breaks the switch in the edi_status block of the basket.tt template. We should make this switch case-insensitive. Test Plan: 1) View the basket for a sent EDI order, note the Sent status does not display. 2) Apply this patch 3) Reloate the page, note the status is now visible! Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit b0b33b382c5254db2b4d78ee4d00f03d589513ca) Signed-off-by: Fridolin Somers (cherry picked from commit 92e977062cc70eb149e70e93e645b483d221a671) Signed-off-by: Matt Blenkinsop --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 9686570613..b3836d3611 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -265,9 +265,9 @@ [% IF ( ediaccount ) %] [%- BLOCK edi_status -%] [%- SWITCH edi_order.status -%] - [%- CASE 'Pending' -%]Pending - [%- CASE 'Sent' -%]Sent - [%- CASE 'Processed' -%]Processed + [%- CASE 'pending' -%]Pending + [%- CASE 'sent' -%]Sent + [%- CASE 'processed' -%]Processed [%- END -%] [%- END -%] [% IF ( edi_order ) %] -- 2.39.5