]> 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)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 1 Jul 2016 06:34:12 +0000 (08:34 +0200)
commit6a6a6e40c32cd60c7fc8844c2d138285be20dd94
treef39728a8cfc298c0d6a92e9807cca9f00bd514d2
parentf44389f3a96f64b43b7cd896a7502550687338d6
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>
(cherry picked from commit 8c14c25521eac92a2cb62ab5330deac2e2d5343d)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit a50e5f141b14c1ba6f9c491a40db1270a8c7be99)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Items.pm
admin/biblio_framework.pl
admin/marc_subfields_structure.pl
admin/marctagstructure.pl
t/db_dependent/Items.t