From af6d9e9a2b08710efecd0f3656dcb0ee5232a4ea Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 24 Oct 2023 02:42:55 +0000 Subject: [PATCH] Bug 23111: Use selected default framework if UseACQFrameworkForBiblioRecords set to Don't Use --- acqui/addorder.pl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/acqui/addorder.pl b/acqui/addorder.pl index c5b9847b019..106c11ee05b 100755 --- a/acqui/addorder.pl +++ b/acqui/addorder.pl @@ -138,7 +138,7 @@ use Koha::Acquisition::Orders; use Koha::Acquisition::Baskets; use C4::Barcodes; use Koha::DateUtils qw( dt_from_string ); - +use Koha::BiblioFrameworks; use Koha::AdditionalFields; ### "-------------------- addorder.pl ----------" @@ -323,8 +323,10 @@ if ( $basket->{is_standing} || $orderinfo->{quantity} ne '0' ) { } C4::Acquisition::FillWithDefaultValues( $record ); - # create the record in catalogue, with framework '' - my ($biblionumber,$bibitemnum) = AddBiblio($record,''); + # create the record in catalogue + my $default_framework = + Koha::BiblioFrameworks->get_default ? Koha::BiblioFrameworks->get_default->frameworkcode : ''; + my ( $biblionumber, $bibitemnum ) = AddBiblio( $record, $default_framework ); $orderinfo->{biblionumber}=$biblionumber; } -- 2.30.2