@@ -, +, @@ --- Koha/Patron/Modification.pm | 2 +- circ/circulation.pl | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 2 +- t/db_dependent/Koha_borrower_modifications.t | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) --- a/Koha/Patron/Modification.pm +++ a/Koha/Patron/Modification.pm @@ -27,7 +27,7 @@ use base qw(Koha::Object); =head1 NAME -Koha::Patron::Modification - Class represents a requrest to modify or create a patron +Koha::Patron::Modification - Class represents a request to modify or create a patron =head2 Class Methods --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -659,13 +659,14 @@ $template->param( my $patron_image = Koha::Patron::Images->find($borrower->{borrowernumber}); $template->param( picture => 1 ) if $patron_image; +my $has_modifications = Koha::Patron::Modifications->search( { borrowernumber => $borrowernumber } )->count; $template->param( debt_confirmed => $debt_confirmed, SpecifyDueDate => $duedatespec_allow, CircAutocompl => C4::Context->preference("CircAutocompl"), debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), - modifications => Koha::Patron::Modifications->GetModifications({ borrowernumber => $borrowernumber }), + has_modifications => $has_modifications, override_high_holds => $override_high_holds, nopermission => scalar $query->param('nopermission'), ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -706,7 +706,7 @@ No patron matched [% message %]