[Koha-bugs] [Bug 5394] New: Fatal error when searching for a non-existant item when receiving an order

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 12 17:45:33 CET 2010


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5394

           Summary: Fatal error when searching for a non-existant item
                    when receiving an order
 Change sponsored?: Sponsored
           Product: Koha
           Version: rel_3_0
          Platform: All
               URL: http://localhost:8080/cgi-bin/koha/acqui/orderreceive.
                    pl?supplierid=4&freight=0&invoice=2117008&receive=9781
                    563636783
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Acquisitions
        AssignedTo: henridamien at koha-fr.org
        ReportedBy: mjr at ttllp.co.uk
         QAContact: koha-bugs at lists.koha-community.org
   Estimated Hours: 0.0


A book is a new edition of the title in the catalogue, but their 
records are, and should remain, completely unrelated.

I couldn't see a record for it in the acquisition module so I 
searched for it by ISBN from here:
http://localhost:8080/cgi-bin/koha/acqui/parcel.pl?type=intra&supplierid=4&datereceived=2010-10-14&invoice=2117008
under "search orders to add to this shipment"
to check that the new edition record wasn't tucked away somewhere.

I got the error message "Can't use string ("0") as a HASH ref while "strict
refs" in use at /usr/local/share/koha/cgi-bin/acqui/orderreceive.pl line 192."

This appears to be because the end of acqui/orderreceive.pl doesn't check
whether the earlier GetBookSellerFromId actually found anything.

I will prepare a simple patch.  I think this is 3.0.x only.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Koha-bugs mailing list