[Koha-bugs] [Bug 31187] Regression, Permanent shelving location is always updated when editing location VIA BATCH ITEM MOD if both are mapped to MARC fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 3 17:10:39 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31187

--- Comment #21 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 150597
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150597&action=edit
Bug 31187: (follow-up) Check if input in form, not if values passed

This patch updates the check to see if there was a form input present,
not if a value was passed.

$attr contains an item colum
@form_attr contains the form inputs for the attribute
@values (renamed from @v) contains the uniq values passed in to the form

We want to know if permanent_location is in the form, not if it had values,
to know if we should preserve the DB value

To test:
1 - Apply patches
2 - Make sure permanent_location is not mapped to a marc field
3 - Batch edit an item, changing shelving location
4 - Confirm both location and permanent_location are changed

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


More information about the Koha-bugs mailing list