From 573db0fca181cb36063462ed566adc5bac7f293d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 29 Jul 2022 23:41:13 +0000 Subject: [PATCH] Bug 31269: Define sDefaultContent for DataTables 1. Stage a MARC record for import 2. Once you have one click on 'Manage staged records' 3. You will see an alert that says "Something went wrong when loading the table." 4. If you dismiss that you should see the following error: DataTables warning: table id=records-table - Requested unknown parameter '' for row 0, column 4. For more information about this error, please see http://datatables.net/tn/4 5. Appy patch 6. Try ssteps 1 & 2 again 7. No DataTable errors Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt index 921a3d8e0b..7cac215413 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt @@ -486,8 +486,8 @@ { "mDataProp": "citation" }, { "mDataProp": "status" }, { "mDataProp": "overlay_status" }, - { "mDataProp": "" }, - { "mDataProp": "" }, + { "mDataProp": null, "sDefaultContent": "" }, + { "mDataProp": null, "sDefaultContent": "" }, { "mDataProp": "matched" } ], "fnServerData": function(sSource, aoData, fnCallback) { -- 2.39.5