]> git.koha-community.org Git - koha.git/commit
Bug 32807: Fetch count instead of all entries for agreements and licenses
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 22 Feb 2023 07:48:48 +0000 (08:48 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Mar 2023 10:50:00 +0000 (12:50 +0200)
commitf781fdb4a231e074b36099d0a724fad576518921
treebe336a6fa86f7e003f96dccb6aa177e7648e672c
parent7b2644bf2b0faf22375979bdf0fa8f4f0335425c
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 <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm-api-client.js