Bugzilla – Attachment 133846 Details for
Bug 30510
Add a Patron reason column to the suggestion table in the staff interface
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.63 KB, created by
Lucas Gass (lukeg)
on 2022-04-25 22:43:57 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:43:57 UTC
Size:
1.63 KB
patch
obsolete
>From b468a6176fc5745bde3db8dfe251d4c9da8665c7 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 > >--- > 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 30510
:
133200
|
133406
|
133726
|
133846