We should use the existing pattern of calling schema directly on
Koha::Database rather than creating a new object.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
my $circ_library = Koha::Libraries->find( _GetCircControlBranch($item_unblessed, $patron_unblessed) );
- my $schema = Koha::Database->new->schema;
+ my $schema = Koha::Database->schema;
$schema->txn_do(sub{
if ( C4::Context->preference('CalculateFinesOnReturn') && $issue->is_overdue ) {