From 26217c97764513a79e82b7c8ba7999951b2b4464 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 20 Mar 2018 09:10:13 -0400 Subject: [PATCH] Bug 20446: QUOTES processing broken by run time error --- Koha/EDI.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/EDI.pm b/Koha/EDI.pm index bad68d1995..5ac208db7d 100644 --- a/Koha/EDI.pm +++ b/Koha/EDI.pm @@ -799,7 +799,10 @@ sub quote_item { my $basket = Koha::Acquisition::Basket->find( $basketno ); - if ( $basket->effective_create_item eq 'ordering' ) { + if ( $basket + ? $basket->effective_create_item eq 'ordering' + : C4::Context->preference('AcqCreateItem') eq 'ordering' ) + { my $new_item = { notforloan => -1, cn_sort => q{}, -- 2.14.3 (Apple Git-98)