From b9b2ce2ec3cf79611ea47e6261d224db4a40d504 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Mon, 21 Feb 2022 11:49:11 +0000
Subject: [PATCH] Bug 16258: (QA follow-up) Fix columns_settings

Splice out the relevant field from the columns_settings when EDIFACT is
disabled
---
 koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 3 +++
 1 file changed, 3 insertions(+)

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 6535cf00c3..eefea84a31 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt
@@ -983,6 +983,9 @@
     [% END %]
     <script>
         var columns_settings = [% TablesSettings.GetColumns( 'acqui', 'basket', 'orders', 'json' ) | $raw %];
+        [% IF !(Koha.Preference('EDIFACT') && ediaccount) %]
+        columns_settings.splice(13,1);
+        [% END %]
         [% SET table_settings = TablesSettings.GetTableSettings( 'acqui', 'basket', 'orders' ) %];
         $(document).ready(function() {
             KohaTable("orders", {
-- 
2.20.1