From dcd3417ebd5f28d04a9e41f590dd2bc6ec712479 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 29 Jan 2021 11:06:34 +0000 Subject: [PATCH] Bug 27576: Don't show import recordds table after cleaning a batch Currently if you clean a batch from the manage marc records page, the import records table appears with no items at the bottom of the screen This is because we test for import_batch_id, we should also make sure we didn't just clean a batch To recreate: 1 - Stage a batch for import 2 - Go to 'Manage staged records' 3 - 'Clean' the batch you just imported 4 - Note the empty table that appears at the bottom of the page 5 - Apply patch 6 - Repeat 1-3 7 - Note the table no longer appears --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/manage-marc-import.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 824354064a..9d0f3723be 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 @@ -392,7 +392,7 @@ [% END %] [% END # /IF batch_lis %] - [% IF import_batch_id %] + [% IF import_batch_id && !did_clean %] -- 2.11.0