From ef35ad6d65908286d599ebfe3bbd37b06ce6ffdd Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Wed, 18 Jan 2023 14:09:04 -0500 Subject: [PATCH] =?UTF-8?q?Bug=C2=A032676:=20EDI=20message=20status=20uses?= =?UTF-8?q?=20varying=20case,=20breaking=20EDI=20status=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, not the Sent status does not display. 2) Apply this patch 3) Reload the page, note the status is now visible! Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 35b35af7ab3..3b0a8e227ac 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -320,10 +320,10 @@ [% END %] [% IF ( ediaccount ) %] [%- BLOCK edi_status -%] - [%- SWITCH edi_order.status -%] - [%- CASE 'Pending' -%]Pending - [%- CASE 'Sent' -%]Sent - [%- CASE 'Processed' -%]Processed + [%- SWITCH edi_order.status.lower -%] + [%- CASE 'pending' -%]Pending + [%- CASE 'sent' -%]Sent + [%- CASE 'processed' -%]Processed [%- END -%] [%- END -%] [% IF ( edi_order ) %] -- 2.39.1