Bug 21203: ILS-DI - Make GetRecords handle non-existent records
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 10 Aug 2018 15:17:45 +0000 (12:17 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 24 Aug 2018 08:55:27 +0000 (09:55 +0100)
commit63b6ef7cb7013ddc151c23d5229deb95148dc879
treeaaa611501d63281a21ad42fdc527dd826d62e3ef
parent7b094874ec08ed32568a7e0b94464bebc7f082ab
Bug 21203: ILS-DI - Make GetRecords handle non-existent records

Caused by
  commit cb336e633bf7e0cb25051a8ed8157af8486a58d7
  Bug 18255: Koha::Biblio - Replace GetBiblioItemByBiblioNumber with Koha::Biblio->biblioitem

Can't call method "biblioitem" on an undefined value at /home/vagrant/kohaclone/C4/ILSDI/Services.pm line 212

Test plan:
- Enable ilsdi
- hit /cgi-bin/koha/ilsdi.pl?service=GetRecords&id=X
With X an existing biblionumber and a non existing one

Both requests must succeed

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 88d3865168a83aa7e69999ab3336b238a2ed14ff)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/ILSDI/Services.pm