Bug 18254: Remove call to GetItemsByBiblioitemnumber call from additem.pl
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 13 Mar 2017 01:56:19 +0000 (22:56 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 15 Jun 2017 18:56:00 +0000 (15:56 -0300)
commit48f847025d2963c7d5583d46e27e59b28620e4b7
treed7d1720f82d1a395dd055151b0f0ff7a59f3f5fb
parent628d8391d29a59f7d6a0ecfb52081684cee81403
Bug 18254: Remove call to GetItemsByBiblioitemnumber call from additem.pl

The code from additem to delete all the items of a bibliographic record
is very ackward.
This patch simplifies the algorithm and make the code more readable.

Test plan:
Remove all the items of a bibliographic records
If at least 1 item is checked out you should get an error.

No change with the current behavior is expected.

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
cataloguing/additem.pl