Bug 34478: Add 'op' to serials/subscription-batchedit

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2024-02-07 10:27:43 +01:00
parent 833fe2d2f0
commit 102ae26beb
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
2 changed files with 4 additions and 3 deletions

View File

@ -162,7 +162,8 @@
</fieldset>
<fieldset class="action">
<button type="submit" name="batchedit" class="btn btn-primary" value="1">Save</button>
<input type="hidden" name="op" value="cud-batchedit" />
<button type="submit" class="btn btn-primary">Save</button>
<a class="cancel" href="[% referrer | url %]">Cancel</a>
</fieldset>
</form>

View File

@ -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'),