From b0b33b382c5254db2b4d78ee4d00f03d589513ca 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 --- 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 88b4c62819..45f7cc4c4e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -269,9 +269,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