]> git.koha-community.org Git - koha.git/commit
Bug 13074: Use Koha::Cache to cache the defaults values of a MARC record
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 3 May 2016 10:08:47 +0000 (11:08 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Jun 2016 14:29:59 +0000 (14:29 +0000)
commit8c14c25521eac92a2cb62ab5330deac2e2d5343d
tree72dd8007144d087ba1f78671bc1aaa5c620931c3
parent30946eff3cda31d0cc97c6c1c4f1e757dbc4c366
Bug 13074: Use Koha::Cache to cache the defaults values of a MARC record

With the global %default_values_for_mod_from_marc variable, the changes
made to the marc_subfield_structure table and especially the links
between MARC and DB fields are not safe and might be outdated (if a
field is linked/unlinked)

Test plan:
Under Plack:
- Link the barcode field, edit a record and set a barcode.
- Remove the mapping for the barcode field and then update again the
  barcode of the record.
The items.barcode DB field must not have been updated.

Without this patch, the field should have been updated.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Items.pm
admin/biblio_framework.pl
admin/marc_subfields_structure.pl
admin/marctagstructure.pl
t/db_dependent/Items.t