From 2fee4cd1186e961219689e5e1173d6cf09fed51a 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 --- Koha/RefundLostItemFeeRules.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/RefundLostItemFeeRules.pm b/Koha/RefundLostItemFeeRules.pm index 79a334e..3e37f43 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.8.1