Bug 38010: (QA follow-up) Handle form parameters in the browser

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Matt Blenkinsop 2025-04-23 11:13:50 +01:00 committed by Katrin Fischer
parent 6fa18591cb
commit 64a43ee022
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 3 additions and 6 deletions

View File

@ -89,9 +89,6 @@ sub add {
my $contacts = delete $vendor->{contacts};
my $interfaces = delete $vendor->{interfaces};
my $aliases = delete $vendor->{aliases};
delete $vendor->{subscriptions};
delete $vendor->{baskets};
delete $vendor->{contracts};
my $vendor_to_store = Koha::Acquisition::Bookseller->new_from_api( $c->req->json );
@ -132,9 +129,6 @@ sub update {
my $contacts = delete $vendor_update->{contacts};
my $interfaces = delete $vendor_update->{interfaces};
my $aliases = delete $vendor_update->{aliases};
my $subscriptions = delete $vendor_update->{subscriptions};
my $baskets = delete $vendor_update->{baskets};
my $contracts = delete $vendor_update->{contracts};
$vendor->set_from_api($vendor_update);
$vendor->store();

View File

@ -127,6 +127,9 @@ export default {
}
delete vendor.physical;
delete vendor.subscriptions_count;
delete vendor.baskets;
delete vendor.subscriptions;
delete vendor.contracts;
if (!this.discountValid)
errors.push(this.$__("Invalid discount value"));