Bugzilla – Attachment 133847 Details for
Bug 30553
Add a count to the Files tab in the patron account
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30510: Return only the count from the new filecount method
Bug-30510-Return-only-the-count-from-the-new-filec.patch (text/plain), 1.69 KB, created by
Lucas Gass (lukeg)
on 2022-04-25 22:45:28 UTC
(
hide
)
Description:
Bug 30510: Return only the count from the new filecount method
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-04-25 22:45:28 UTC
Size:
1.69 KB
patch
obsolete
>From bd9af16835fe91dd90865ab2be40138a47775a09 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Mon, 25 Apr 2022 22:43:23 +0000 >Subject: [PATCH] Bug 30510: Return only the count from the new filecount > method > >https://bugs.koha-community.org/show_bug.cgi?id=30553 >--- > Koha/Patron.pm | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index 6f3e07c7b7..f851080dc0 100644 >--- a/Koha/Patron.pm >+++ b/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 >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index dfb976f70d..4c3755ad60 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/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 ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files ([% patron.filecount.size | html%])</a></li> >+ [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]">Files ([% patron.filecount | html%])</a></li> > [% END %] > [% END %] > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30553
:
133365
|
133480
| 133847 |
134287