Bug 24294: Add default value support for control fields in ACQ framework
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 2 Jan 2020 11:09:27 +0000 (12:09 +0100)
committerJoy Nelson <joy@bywatersolutions.com>
Tue, 31 Mar 2020 22:23:09 +0000 (22:23 +0000)
commitdec127df2ab986ed555f7a2cadc94491abecfbfe
treec41d373347588f90ba102fc978f9db5e08b49fc5
parent6298eafa642529283ed82f72638bb434762a2c15
Bug 24294: Add default value support for control fields in ACQ framework

When trying to add an order using the ACQ framework with a 008@ tag,
Koha explodes:

Control fields (generally, just tags below 010) do not have subfields,
use data() at /home/vagrant/kohaclone/C4/Acquisition.pm line 3272.

Test plan:
Set a default value for a control field in the ACQ framework
Turn on UseACQFrameworkForBiblioRecords
Create a new order from a new record
The default value should be displayed
Save
=> No crash

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
C4/Acquisition.pm
t/db_dependent/Acquisition/FillWithDefaultValues.t