https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40555 --- Comment #6 from Pedro Amorim <pedro.amorim@openfifth.co.uk> --- At this point the bug title and submitted patch may no longer be 100% accurate, but these issues are all coming from the fact that an item does not have an item type set. To reproduce: 1) MARC21: Add 'TEST' as default value for 952$y for 'Fast add framework', handy link: <staff_url>/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&tagfield=952&tagsubfield=y&frameworkcode=FA#subyfield 2) Go to any record: <staff_url>/cgi-bin/koha/catalogue/detail.pl?biblionumber=76 3) Click 'Edit' -> 'Edit record'. Click 'Settings' and pick 'Fast add framework'. Click 'Save'. 4) Click 'New' -> 'New Item'. Notice the default value says 'Not an authorised value' but still lets you save. Click 'Save'. 5) Visit the same record again (repeat 2). 6) You get a table error, log error is the following: GET /api/v1/biblios/76/items: unhandled exception (Mojo::Exception)<<Can't call method "notforloan" on an undefined value at /kohadevbox/koha/Koha/Item.pm line 1556.>> -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.