[Koha-patches] [PATCH] [SIGNED-OFF] Bug 4935: fix for allowing authorized values to be "unset"
Ian Walls
ian.walls at bywatersolutions.com
Wed Dec 8 21:15:10 CET 2010
From: Liz Rea <lrea at nekls.org>
Signed-off-by: Ian Walls <ian.walls at bywatersolutions.com>
---
tools/batchMod.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index b2007bc..6a702dc 100755
--- a/tools/batchMod.pl
+++ b/tools/batchMod.pl
@@ -497,7 +497,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