[Bug 31538] New: Crash on item tab of a record with UNIMARC
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Bug ID: 31538 Summary: Crash on item tab of a record with UNIMARC Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: blocker Priority: P5 - low Component: Staff Client Assignee: koha-bugs@lists.koha-community.org Reporter: victor@tuxayo.net QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com == 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 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Joonas Kylmälä <joonas.kylmala@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |joonas.kylmala@iki.fi --- Comment #1 from Joonas Kylmälä <joonas.kylmala@iki.fi> --- I cannot get any biblio to show even, or search for them with kohadevbox and after having ran "reset_all_unimarc". -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Joonas Kylmälä <joonas.kylmala@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |joonas.kylmala@iki.fi |ity.org | Status|NEW |ASSIGNED --- Comment #2 from Joonas Kylmälä <joonas.kylmala@iki.fi> --- We are not checking whether the item in question has an itemtype. Need to add a check for that. Patch coming right up. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 --- Comment #3 from Joonas Kylmälä <joonas.kylmala@iki.fi> --- 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. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Joonas Kylmälä <joonas.kylmala@iki.fi> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|joonas.kylmala@iki.fi |koha-bugs@lists.koha-commun | |ity.org Status|ASSIGNED |NEW --- Comment #4 from Joonas Kylmälä <joonas.kylmala@iki.fi> --- 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. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 --- Comment #5 from Joonas Kylmälä <joonas.kylmala@iki.fi> --- Unfortunately we don't seem to have foreign key constraint from items table to itemtypes table, so these errors are bound to happen. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 --- Comment #6 from Victor Grousset/tuxayo <victor@tuxayo.net> --- 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? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com Resolution|--- |INVALID Status|NEW |RESOLVED --- Comment #7 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- This looks like a data problem from misc4dev. You should report the problem there (which I won't fix myself however). -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=32747 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=35896 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31538 --- Comment #8 from Victor Grousset/tuxayo <victor@tuxayo.net> --- For anyone coming here, the problem has been reported in this ticket gitlab DOT com/koha-community/koha-misc4dev/-/issues/76 -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org