Bug 6171

Summary: Can't edit items
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: CatalogingAssignee: Frédéric Demians <frederic>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: blocker    
Priority: PATCH-Sent (DO NOT USE) CC: chris, frederic, koha.sekjal, magnus
Version: master   
Hardware: All   
OS: All   
URL: /cgi-bin/koha/cataloguing/additem.pl?op=edititem&itemnumber=77#edititem
Change sponsored?: --- Patch complexity: ---
Who signed the patch off: Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 5917    
Attachments: Proposed patch
Signed off patch

Description Katrin Fischer 2011-04-12 06:13:53 UTC
Steps to reproduce:

- Add a new item for your branch in cataloging
- Try to edit the item

- Try to modify an existing item

Can't call method "fields" on an undefined value at /home/katrin/kohaclone/C4/Biblio.pm line 2097.

Error log:
[Tue Apr 12 08:06:44 2011] [error] [client ::1] [Tue Apr 12 08:06:44 2011] additem.pl: Can't call method "fields" on an undefined value at /home/katrin/kohaclone/C4/Biblio.pm line 2097., referer: http://localhost:8080/cgi-bin/koha/cataloguing/additem.pl
Comment 1 Magnus Enger 2011-04-12 06:22:06 UTC
3.2.x has this link for editing items: 


versus this in master: 


In master, biblionumber is missing from the link.
Comment 2 Frédéric Demians 2011-04-12 06:38:03 UTC
Created attachment 3886 [details] [review]
Proposed patch
Comment 3 Magnus Enger 2011-04-12 07:04:11 UTC
Created attachment 3887 [details] [review]
Signed off patch

Works as expected.
Comment 4 Chris Cormack 2011-04-12 07:54:32 UTC
Pushed, please test
Comment 5 Katrin Fischer 2011-04-24 10:47:04 UTC
Tested successfully in 3.4.