]> 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)
committerMason James <mtj@kohaaloha.com>
Thu, 26 Feb 2015 03:33:51 +0000 (16:33 +1300)
commit5ba9be9026f4a071d98b4c7ab4da5ad09db5eb63
tree6f0ee67147b6ae1e6fbd6dce5f68b75261a21689
parente706d0d66f76866080aeadf2248a522802cc47d1
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: Mason James <mtj@kohaaloha.com>
tools/export.pl