[Koha-bugs] [Bug 25608] New: Regression: Bug 23463 broke inventory
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 27 03:54:53 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25608
Bug ID: 25608
Summary: Regression: Bug 23463 broke inventory
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: didier.gautheron at biblibre.com
Reporter: didier.gautheron at biblibre.com
QA Contact: testopia at bugs.koha-community.org
Depends on: 23463
need to use unblessed items.
Test plan :
- Create a biblio with default framework
- Create an item with barcode='000AAA1', callnumber='ZZZAAA1'
- Create an item with barcode='000AAA2', callnumber='ZZZAAA2'
- Create a file 'barecodes.txt' containing 2 lines '000AAA1' and '000AAA2'
- Go to inventory tool : /cgi-bin/koha/tools/inventory.pl
- Choose file in 'Barcode file'
- Enter item callnumber between 'ZZZ' and 'ZZZa'
- Check 'Compare barcodes list to results'
- Check '
- Submit
=> without patch, you get an error trace
Error trace
Can't call method "title" on an undefined value at
/kohadevbox/koha/tools/inventory.pl line 347, <$fh> line 2.
at /kohadevbox/koha/tools/inventory.pl line 347
in (eval) at /kohadevbox/koha/tools/inventory.pl line 347
344: : $inventorylist // [];
345: for my $item ( @$loop ) {
346: my $biblio = Koha::Biblios->find( $item->{biblionumber} );
347: $item->{title} = $biblio->title;
348: $item->{author} = $biblio->author;
349: }
350:
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23463
[Bug 23463] Move C4::Items CRUD subroutines to Koha::Item
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list