]> 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)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 10 Feb 2015 22:02:55 +0000 (11:02 +1300)
commitdbc39e40a49ee01f14bf92c251b4895575e90152
tree8e6620e2f4d68ae3ba0ed46c49687c9eef2c6103
parentd3de39d946f04b9923a5d9249728e5a4e8ff259b
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>
(cherry picked from commit e2968fe0812898d92ce8c63e9c7f0dedd244acc9)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
tools/export.pl