Bugzilla – Attachment 35610 Details for
Bug 12860
Tools > Data export : "Don't export fields" option doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12860: the export tools explodes if a field is not exported
Bug-12860-the-export-tools-explodes-if-a-field-is-.patch (text/plain), 1.20 KB, created by
Jonathan Druart
on 2015-01-29 15:22:43 UTC
(
hide
)
Description:
Bug 12860: the export tools explodes if a field is not exported
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-01-29 15:22:43 UTC
Size:
1.20 KB
patch
obsolete
>From 0867f0ea01e302bd25d4ce06b92eccb3baf818c5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 29 Jan 2015 16:18:19 +0100 >Subject: [PATCH] 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. >--- > tools/export.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/tools/export.pl b/tools/export.pl >index b079e1c..1bee5dc 100755 >--- a/tools/export.pl >+++ b/tools/export.pl >@@ -393,7 +393,7 @@ if ( $op eq "export" ) { > } > } > else { >- $record->delete_fields($field); >+ $record->delete_fields($record->field($field)); > } > } > } >-- >2.1.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12860
:
35610
|
35614
|
35619