]> git.koha-community.org Git - koha.git/commit
Bug 12860: the export tools explodes if a field is not exported
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 29 Jan 2015 15:18:19 +0000 (16:18 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Feb 2015 18:10:00 +0000 (15:10 -0300)
commite2968fe0812898d92ce8c63e9c7f0dedd244acc9
tree7eb8f68dde928f22280de9f307f89fbd03ebe3b0
parent1c62f1a9783bb8a171352e0b66d910056ccfe0d4
Bug 12860: the export tools explodes if a field is not exported

To reproduce:
1/ Go on tools/export.pl
2/ Export some records and specify you don't want the fields 245 (the
whole field, do not specify a subfield).
3/ Export, BOOM
Software error:
Arguments must be MARC::Field object at /home/koha/src/tools/export.pl line 400.

Test plan:
Apply the patch and confirm the fields 245 are not exported and the
export works as expected.

Signed-off-by: Robin Sheat <robin@catalyst.net.nz>
Export fails to asplode with this patch

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
tools/export.pl