]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 8 Apr 2020 15:35:53 +0000 (15:35 +0000)
commit98e48a892c875ec5e4a6195ec1b7b449be4bb383
tree7b3276e485d4d1709b3c9b70270effa52978de63
parent0870bb6da6191759512e8b7a29ebe7a2f169ee62
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>
(cherry picked from commit dec127df2ab986ed555f7a2cadc94491abecfbfe)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Acquisition.pm
t/db_dependent/Acquisition/FillWithDefaultValues.t