Bug 29086: Simplify querying active article requests
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 22 Sep 2021 19:49:33 +0000 (16:49 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Oct 2021 08:54:59 +0000 (10:54 +0200)
commitcb6ffc0008160b2acf05596bda39c78f8854bd17
tree28ab167a99c9b5bc551224ad3a286566cbc0cbd3
parentf968a65793b877e3118fa347cba542e629acde9d
Bug 29086: Simplify querying active article requests

This patch makes a trivial replacement of a query for a higher level
method that does the same query.

To test:
1. Enable the ArticleRequests feature
2. Place some article requests on known biblios
3. Have some article requests be active on others finished (either
   completed or cancelled)
4. Go to the detail page for those records
=> SUCCESS: The active article requests count is correct!
5. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Template/Plugin/Biblio.pm