From 8efeec2267dc2cf0e5851cdc27ef73f67b4a6e8b Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 12 Dec 2024 12:40:05 +0000 Subject: [PATCH] Bug 38685: Remove useless batch_create code This is not used and not needed. Noticed when evaluating every potential 'op'. Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize --- ill/ill-requests.pl | 3 --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ill/ill-requests.pl b/ill/ill-requests.pl index 10077427c72..5902a688837 100755 --- a/ill/ill-requests.pl +++ b/ill/ill-requests.pl @@ -461,9 +461,6 @@ if ($backends_available) { exit; } elsif ( $op eq "batch_list" ) { - # Do not remove, it prevents us falling through to the 'else' - } elsif ( $op eq "batch_create" ) { - # Do not remove, it prevents us falling through to the 'else' } else { $op =~ s/^cud-//; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 5f28116b67b..06306e3c545 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -886,7 +886,7 @@ - [% ELSIF op == 'batch_list' || op == 'batch_create' %] + [% ELSIF op == 'batch_list' %] [% INCLUDE 'ill-batch.inc' %] [% ELSE %] -- 2.39.5