Bug 14048: (QA folloup) C4::Context->preference should be used

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2016-06-25 12:37:15 -03:00 committed by Jesse Weaver
parent e657345fd7
commit c24fc83eee
1 changed files with 1 additions and 3 deletions

View File

@ -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',