]> git.koha-community.org Git - koha.git/commit
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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 26 Feb 2020 20:37:00 +0000 (20:37 +0000)
commit64855886b8e4eb71d03fa902762c3f3f1f79b5ed
tree6eb1e83d09a4c5e4e04cf101b33f36293cf0aff2
parentdd9a965ed58208075efa1bc51a2364096f04cda3
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>
C4/Acquisition.pm
t/db_dependent/Acquisition/FillWithDefaultValues.t