[Koha-patches] [PATCH] fix for allowing authorized values to be "unset"
Nicole Engard
nengard at bywatersolutions.com
Wed Oct 6 07:21:26 CEST 2010
From: Liz Rea <lrea at nekls.org>
Signed-off-by: Nicole Engard <nengard 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 5271d81..80ac58d 100755
--- a/tools/batchMod.pl
+++ b/tools/batchMod.pl
@@ -499,7 +499,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