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 <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d949ac5e5c
commit
b0b33b382c
|
|
@ -269,9 +269,9 @@
|
|||
[% IF ( ediaccount ) %]
|
||||
[%- BLOCK edi_status -%]
|
||||
[%- SWITCH edi_order.status -%]
|
||||
[%- CASE 'Pending' -%]<span>Pending</span>
|
||||
[%- CASE 'Sent' -%]<span>Sent</span>
|
||||
[%- CASE 'Processed' -%]<span>Processed</span>
|
||||
[%- CASE 'pending' -%]<span>Pending</span>
|
||||
[%- CASE 'sent' -%]<span>Sent</span>
|
||||
[%- CASE 'processed' -%]<span>Processed</span>
|
||||
[%- END -%]
|
||||
[%- END -%]
|
||||
[% IF ( edi_order ) %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue