From 59daae2ebc05b57d178e513761c7b86f978ff4ef Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Feb 2023 08:48:48 +0100 Subject: [PATCH] Bug 32807: Fetch count instead of all entries for agreements and licenses To list agreements and licenses we are retrieving the whole list to simply know if at least one exists (and display the table that will fetch the X first elements to display). We should call count instead. Test plan: List agreements and licenses. If none exists, the table is not displayed but a "There are no... defined" message instead. If at least one exists the table must be there Signed-off-by: Matt Blenkinsop Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit f781fdb4a231e074b36099d0a724fad576518921) Signed-off-by: Matt Blenkinsop --- .../js/vue/components/ERM/AgreementsList.vue | 20 +++++++++--------- .../ERM/EHoldingsLocalPackagesList.vue | 2 +- .../ERM/EHoldingsLocalTitlesList.vue | 2 +- .../js/vue/components/ERM/LicensesList.vue | 16 +++++++------- .../prog/js/vue/fetch/erm-api-client.js | 21 ++++++++++++++++++- 5 files changed, 40 insertions(+), 21 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue index d265c95dd3..df3caa8c01 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue @@ -1,8 +1,8 @@