When returning an item, Koha searches if it should show a specific message for this itemtype, using C4/ItemType->get() In 3.22, if item itemptype is not defined in itemtypes table, this will result in 500 Error
Created attachment 50728 [details] [review] 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
Created attachment 50731 [details] [review] [SIGNED-OFF] 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>
Created attachment 50892 [details] [review] 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>
Patch pushed to 3.22.x, will be in 3.22.7