Bug 40634 - Adding new authorized value whilst using item edit form creates an error
Summary: Adding new authorized value whilst using item edit form creates an error
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-11 16:39 UTC by Andrew Auld
Modified: 2025-08-11 16:39 UTC (History)
1 user (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Auld 2025-08-11 16:39:53 UTC
In the staff side, when using the edit item form, the ability to add a new authorized value, for example a new Shelving Location, or a new Collection Code doesn't work.
This is the resultant error:
Can't call method "metadata" on an undefined value at /kohadevbox/koha/cataloguing/additem.pl line 193.

To reproduce the bug:
1) find a bib record with an item
2) edit the item (/cgi-bin/koha/cataloguing/additem.pl?op=edititem&biblionumber=XXX&itemnumber=YYY)
3) in the shelving location field, hit the down arrow and type a new shelving location.
4) hit 'select to create' and add further details in the pop up.
5) hit 'save'
6) enjoy the error!