[Koha-patches] [PATCH] [bug 4935] fix for allowing authorized values to be "unset"
Nicole Engard
nengard at bywatersolutions.com
Wed Oct 6 07:19:55 CEST 2010
From: Liz Rea <lrea at nekls.org>
---
tools/batchMod.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index f5138d1..e4e2ed0 100755
--- a/tools/batchMod.pl
+++ b/tools/batchMod.pl
@@ -500,7 +500,7 @@ sub UpdateMarcWith($$){
my @fields_to=$marcto->field($itemtag);
foreach my $subfield ($fieldfrom->subfields()){
foreach my $field_to_update (@fields_to){
- $field_to_update->update($$subfield[0]=>$$subfield[1]) if ($$subfield[1]);
+ $field_to_update->update($$subfield[0]=>$$subfield[1]) if ($$subfield[1] != '' or $$subfield[1] == '0');
}
}
#warn "TO edited:",$marcto->as_formatted;
--
1.5.6.5
More information about the Koha-patches
mailing list