[Koha-patches] [PATCH] [bug 4935] fix for allowing authorized values to be "unset"

Nicole Engard nengard at gmail.com
Wed Oct 6 18:53:23 CEST 2010


sorry - did the sign off wrong - right one on the way

On Wed, Oct 6, 2010 at 1:19 AM, Nicole Engard
<nengard at bywatersolutions.com> wrote:
> 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
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
>


More information about the Koha-patches mailing list