[Koha-bugs] [Bug 30553] Add a count to the Files tab in the patron account

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 29 11:57:39 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30553

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.renvoize at ptfs-europe
                   |                            |.com

--- Comment #8 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Hmm, my initial thought here is what are we grabbing so much data for just a
count?

I see Koha::Patron::Files isn't a modern Koha::Object based class, more of a
half way between C4 module and an object.. so it's not as simple as it
initially looks.

However, maybe it's worth going half way and introducing a 'GetFileCount'
method in the underlying Koha::Patron::Files class which does the simpler
'SELECT COUNT(*) FROM borrower_files WHERE borrowernumber = ?' instead?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list