fixing has_field bug
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 18:11:19 +0000 (18:11 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Dec 2005 18:11:19 +0000 (18:11 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2505 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/Fieldmapper.pm

index 6875751..69be355 100644 (file)
@@ -351,6 +351,7 @@ sub real_fields {
 sub has_field {
        my $self = shift;
        my $field = shift;
+       my $class_name = $self->class_name;
        return 1 if grep { $_ eq $field } keys %{$$fieldmap{$class_name}{fields}};
        return 0;
 }