Bug 13311

Summary: NewItemsDefaultLocation preference should not populate items.permanent_location
Product: Koha Reporter: Owen Leonard <oleonard>
Component: CatalogingAssignee: Galen Charlton <gmcharlt>
Status: In Discussion --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: baptiste.wojtkowski, fridolin.somers, m.de.rooy
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13297
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15876
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Owen Leonard 2014-11-20 16:12:29 UTC
I noticed this problem when testing Bug 13297:

If you have NewItemsDefaultLocation turned on (set to use the "PROC" authorized value for instance), and you add a new item to a record through the cataloging interface but you *don't* select a shelving location, both items.location and items.permanent_location will be filled with "PROC." This is incorrect. Only items.location should be filled.

If items.permanent_location is also "PROC," then checking in the item will not trigger removal of the "PROC" value as it should.
Comment 1 Baptiste 2017-06-07 13:50:56 UTC
Could not reproduce on master, is this problem still existing ?
Comment 2 Fridolin Somers 2017-06-13 09:37:14 UTC
I can't also reproduce the bug.
items.location gets PROC and items.permanent_location is NULL.

> You add a new item to a record through the cataloging interface but you *don't* select a shelving location,
You used /cgi-bin/koha/cataloguing/additem.pl ?

> checking in the item will not trigger removal of the "PROC" value as it should.
this works for me, items.location is set empty.