[Koha-bugs] [Bug 7817] Items Permanent location (shelving location) is set to NULL when item is edited

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 16 19:49:13 CEST 2012


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

--- Comment #4 from Kyle M Hall <kyle.m.hall at gmail.com> ---
I have found the problem:

Bug 6034, Shelving cart feature can wipe permanent shelving location in certain
circumstances, added "permanent_location => undef" at line 430 of Items.pm.
When permanent_locations is not mapped, it always uses null as the value from
this hash.

Solution: comment out line 430. I don't know if this will have any other
affects.

Potential problem: If a library decides to map permanent_location to a marc
field, they will be unable to set it to a null value.

Possibly better solution: build %default_values_for_mod_from_marc via a
subroutine that checks to see if each column is mapped to a marc field, and
deletes that key if it is not. That way, any unmapped fields will not be nulled
when an item is edited.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list