@@ -, +, @@ method --- Koha/Patron.pm | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -445,7 +445,7 @@ sub filecount { my ( $self ) = @_; my $files = Koha::Patron::Files->new( borrowernumber => $self->borrowernumber )->GetFilesInfo(); - return $files; + return scalar @{$files}; } =head3 library --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -159,7 +159,7 @@ [% END %] [% IF CAN_user_borrowers_edit_borrowers %] [% IF ( EnableBorrowerFiles ) %] - [% IF ( borrower_files ) %]
  • [% ELSE %]
  • [% END %]Files ([% patron.filecount.size | html%])
  • + [% IF ( borrower_files ) %]
  • [% ELSE %]
  • [% END %]Files ([% patron.filecount | html%])
  • [% END %] [% END %] --