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:
parent
e657345fd7
commit
c24fc83eee
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue