== test plan == 1. start a UNIMARC Koha with sample data 2. search for any record 3. go to item tab 4. error Can't call method "notforloan" on an undefined value at /kohadevbox/koha/catalogue/moredetail.pl line 189
I cannot get any biblio to show even, or search for them with kohadevbox and after having ran "reset_all_unimarc".
We are not checking whether the item in question has an itemtype. Need to add a check for that. Patch coming right up.
Actually, do we require itemtypes? If not, then at least the regression is caused by Bug 24185: Make holds page faster: Preparatory refactoring >+ Koha::ItemTypes->find( $i->effective_itemtype() )->notforloan and bug 27272 related dependencies.
So after grepping for Koha::ItemTypes->find I can see almost all places in Koha expect there to be an itemtype to be defined. Koha just doesn't want to work without itemtypes, and for some reason the unimarc default data seems to come without itemtypes linked to the items. Putting back to NEW status. Need to discuss first how to proceed.
Unfortunately we don't seem to have foreign key constraint from items table to itemtypes table, so these errors are bound to happen.
Thanks for the analysis :) > unimarc default data Is that just about sample data that is inserted directly via SQL? Or is that something that valid UI usage can produce?
This looks like a data problem from misc4dev. You should report the problem there (which I won't fix myself however).
For anyone coming here, the problem has been reported in this ticket gitlab DOT com/koha-community/koha-misc4dev/-/issues/76