Intended defence against lack of caption was still failing; keep it simple, dbs
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 May 2009 03:48:24 +0000 (03:48 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 May 2009 03:48:24 +0000 (03:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13223 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/MFHD/Holding.pm

index 1c20485..ab63812 100755 (executable)
@@ -238,7 +238,7 @@ sub validate {
     my $self = shift;
 
     foreach my $key (keys %{$self->{_mfhdh_SUBFIELDS}}) {
-       if (!($self->{_mfhdh_CAPTION}) && $self->{_mfhdh_CAPTION}->capfield($key)) {
+       if (!$self->{_mfhdh_CAPTION} || !$self->{_mfhdh_CAPTION}->capfield($key)) {
            return 0;
        }
     }