Bug 16356: Fix Error 500 when returning an item which itemtype is not in itemtypes...
authorSophie Meynieux <sophie.meynieux@biblibre.com>
Tue, 26 Apr 2016 16:04:45 +0000 (18:04 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 28 Apr 2016 10:51:07 +0000 (12:51 +0200)
commit4c20effa88c91f4b0c38b93c87a427fb9264912c
treec4fd8f374069a22e7a178b18a79ed11ab3de27fd
parent372868a3003fff29c7e913ff104f2d0d2cb0e5ea
Bug 16356: Fix Error 500 when returning an item which itemtype is not in itemtypes table

  Test plan :
    * Find an item with itemtype (itype or bilbioitems.itemtype
      depending on syspref) does not exist in itemtypes table
    * If necessary, change itemtype of one of your item
    * Check out this item
    * Try to check it in, you've got a 500 Error and item is not
      returned

    With the patch
    * Try to check your item in. Item is correctly returned

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/ItemType.pm