Bug 28445: Add tests for subfields_to_prefill
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Oct 2021 08:47:51 +0000 (10:47 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Oct 2021 08:54:42 +0000 (10:54 +0200)
commit79e8701b1de5eb471d0e32103ea44cd8af40d06e
tree49c354c25bd29f2d263355af00a19912a50fcd72
parent1fa2afe44bbec0fd2ae0d34f30488fe6b9b9835d
Bug 28445: Add tests for subfields_to_prefill

I first wrote test for another thing but the code was actually correct.
So submitting the tests.

Note that the marc for more_subfields does not need to be passed, we can
build it when needed.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/UI/Form/Builder/Item.pm
t/db_dependent/Koha/UI/Form/Builder/Item.t