]> git.koha-community.org Git - koha.git/commit
Bug 18256: Koha::Items - Remove GetItemsCount
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 Mar 2017 04:11:54 +0000 (01:11 -0300)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 22 Mar 2017 19:18:15 +0000 (19:18 +0000)
commit3115ac641f2e8cf2c7ec7b697e4e74092ef06f45
tree08218ba69a1cdf8710f9117e928261d68f9476b8
parent0d239e4e6f3c7095173773252dc9ce38b48c0799
Bug 18256: Koha::Items - Remove GetItemsCount

C4::Items::GetItemsCount can be replaced with Koha::Biblio->items->count

Test plan:
Create a bibliographic record with items attached
Try to delete the record from a basket (acquisition module), the detail
page and the batch item deletion tool.

=> You should not be able to delete it.

Remove the items and then try again to delete the record

=> Now you must be able to delete it.

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
C4/Acquisition.pm
C4/Items.pm
acqui/basket.pl
acqui/parcel.pl
catalogue/ISBDdetail.pl
catalogue/MARCdetail.pl
catalogue/imageviewer.pl
catalogue/labeledMARCdetail.pl
t/db_dependent/Acquisition.t
tools/batchMod.pl