Bugzilla – Attachment 145405 Details for
Bug 32676
EDI message status uses varying case, breaking EDI status block
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32676: EDI message status uses varying case, breaking EDI status block
Bug32676-EDI-message-status-uses-varying-case-brea.patch (text/plain), 2.04 KB, created by
Kyle M Hall (khall)
on 2023-01-18 19:10:53 UTC
(
hide
)
Description:
Bug 32676: EDI message status uses varying case, breaking EDI status block
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-01-18 19:10:53 UTC
Size:
2.04 KB
patch
obsolete
>From 4522f0cacd31bad44134d15d5c169111630f711f Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >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! >--- > 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 35b35af7ab..3b0a8e227a 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' -%]<span>Pending</span> >- [%- CASE 'Sent' -%]<span>Sent</span> >- [%- CASE 'Processed' -%]<span>Processed</span> >+ [%- SWITCH edi_order.status.lower -%] >+ [%- CASE 'pending' -%]<span>Pending</span> >+ [%- CASE 'sent' -%]<span>Sent</span> >+ [%- CASE 'processed' -%]<span>Processed</span> > [%- END -%] > [%- END -%] > [% IF ( edi_order ) %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32676
:
145405
|
145758