From 102ae26bebb6e6570059315889fb208296bb203e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 Feb 2024 10:27:43 +0100 Subject: [PATCH] Bug 34478: Add 'op' to serials/subscription-batchedit Signed-off-by: Jonathan Druart --- .../prog/en/modules/serials/subscription-batchedit.tt | 3 ++- serials/subscription-batchedit.pl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt index b8bbc7278d..0fa99c9959 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-batchedit.tt @@ -162,7 +162,8 @@
- + + Cancel
diff --git a/serials/subscription-batchedit.pl b/serials/subscription-batchedit.pl index 274bcd4f23..903db1c4f0 100755 --- a/serials/subscription-batchedit.pl +++ b/serials/subscription-batchedit.pl @@ -51,8 +51,8 @@ foreach my $subscriptionid (@subscriptionids) { my @available_additional_fields = Koha::AdditionalFields->search( { tablename => 'subscription' } )->as_list; -my $batchedit = $cgi->param('batchedit'); -if ($batchedit) { +my $op = $cgi->param('op') || q{}; +if ( $op eq 'cud-batchedit' ) { my %params = ( aqbooksellerid => scalar $cgi->param('booksellerid'), location => scalar $cgi->param('location'), -- 2.39.5