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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to