From c24fc83eee88771c36a0475165619c96fe54ebf2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Sat, 25 Jun 2016 12:37:15 -0300 Subject: [PATCH] Bug 14048: (QA folloup) C4::Context->preference should be used Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart Signed-off-by: Jesse Weaver --- Koha/RefundLostItemFeeRules.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/RefundLostItemFeeRules.pm b/Koha/RefundLostItemFeeRules.pm index 79a334eb17..3e37f4349b 100644 --- a/Koha/RefundLostItemFeeRules.pm +++ b/Koha/RefundLostItemFeeRules.pm @@ -106,9 +106,7 @@ sub _choose_branch { my $self = shift; my $param = shift; - my $behaviour = Koha::Config::SysPrefs - ->find( 'RefundLostOnReturnControl' ) - ->value // 'CheckinLibrary'; + my $behaviour = C4::Context->preference( 'RefundLostOnReturnControl' ) // 'CheckinLibrary'; my $param_mapping = { CheckinLibrary => 'current_branch', -- 2.39.5