diff --git a/circ/checkout-notes.pl b/circ/checkout-notes.pl index e94bea06c9..9f5e1c7bdf 100755 --- a/circ/checkout-notes.pl +++ b/circ/checkout-notes.pl @@ -56,7 +56,7 @@ if ( $action eq 'seen' ) { } } -my $notes = Koha::Checkouts->search({ 'me.note' => { '!=', undef } }, { prefetch => [ 'borrower', { item => 'biblionumber' } ] }); +my $notes = Koha::Checkouts->search({ 'me.note' => { '!=', undef } }, { prefetch => [ 'patron', { item => 'biblionumber' } ] }); $template->param( selected_count => scalar(@issue_ids), action => $action, diff --git a/circ/renew.pl b/circ/renew.pl index 4a0db8a114..97b6317067 100755 --- a/circ/renew.pl +++ b/circ/renew.pl @@ -63,7 +63,7 @@ if ($barcode) { if ($issue) { - $borrower = $issue->borrower(); + $borrower = $issue->patron(); if ( ( $borrower->debarred() || q{} ) lt dt_from_string()->ymd() ) { my $can_renew; diff --git a/misc/cronjobs/automatic_renewals.pl b/misc/cronjobs/automatic_renewals.pl index d972dd79d6..b21f9a42e2 100755 --- a/misc/cronjobs/automatic_renewals.pl +++ b/misc/cronjobs/automatic_renewals.pl @@ -132,7 +132,7 @@ $verbose = 1 unless $verbose or $confirm; print "Test run only\n" unless $confirm; print "getting auto renewals\n" if $verbose; -my $auto_renews = Koha::Checkouts->search({ auto_renew => 1, 'borrower.autorenew_checkouts' => 1 },{ join => 'borrower'}); +my $auto_renews = Koha::Checkouts->search({ auto_renew => 1, 'patron.autorenew_checkouts' => 1 },{ join => 'patron'}); print "found " . $auto_renews->count . " auto renewals\n" if $verbose; my $renew_digest = {}; diff --git a/tools/batch_extend_due_dates.pl b/tools/batch_extend_due_dates.pl index 77c80237ab..1ce79eeb68 100755 --- a/tools/batch_extend_due_dates.pl +++ b/tools/batch_extend_due_dates.pl @@ -59,7 +59,7 @@ elsif ( $op eq 'list' ) { my $dtf = Koha::Database->new->schema->storage->datetime_parser; my $search_params; if (@categorycodes) { - $search_params->{'borrower.categorycode'} = { -in => \@categorycodes }; + $search_params->{'patron.categorycode'} = { -in => \@categorycodes }; } if (@branchcodes) { $search_params->{'me.branchcode'} = { -in => \@branchcodes }; @@ -98,7 +98,7 @@ elsif ( $op eq 'list' ) { my $checkouts = Koha::Checkouts->search( $search_params, { - join => [ 'item', 'borrower' ] + join => [ 'item', 'patron' ] } );