[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 Jul 30 18:09:45 CEST 2014


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

Owen Leonard <oleonard at myacpl.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29093|0                           |1
        is obsolete|                            |

--- Comment #19 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 30350
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=30350&action=edit
[SIGNED-OFF] Bug 7817: A DB field without a default mapping is set to a default
value on editing

If an item is edited and a field is not mapped to Koha, it is to 0 or
NULL (depending on the default value defined).

This patch adds a check on the mapping before editing the item. If there
is no mapping, the DB value is not erased.

Test plan:
1/ Edit an item and fill a value for a field
2/ Unmap this field
3/ Edit the item
4/ Verify that the value is not erased (using the MySQL CLI)

Signed-off-by: Owen Leonard <oleonard at myacpl.org>

This works as described in the test plan. After unmapping the field
edits to the item did not result in loss of the data in that field.

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


More information about the Koha-bugs mailing list