View | Details | Raw Unified | Return to bug 27833
Collapse All | Expand All

(-)a/Koha/Patron/Attribute.pm (-3 / +2 lines)
Lines 133-139 sub _check_repeatable { Link Here
133
                code           => $self->code
133
                code           => $self->code
134
            }
134
            }
135
            )->count;
135
            )->count;
136
        Koha::Exceptions::Patron::Attribute::NonRepeatable->throw()
136
        Koha::Exceptions::Patron::Attribute::NonRepeatable->throw( attribute => $self )
137
            if $attr_count > 0;
137
            if $attr_count > 0;
138
    }
138
    }
139
139
Lines 161-167 sub check_unique_id { Link Here
161
        my $unique_count = Koha::Patron::Attributes
161
        my $unique_count = Koha::Patron::Attributes
162
            ->search( $params )
162
            ->search( $params )
163
            ->count;
163
            ->count;
164
        Koha::Exceptions::Patron::Attribute::UniqueIDConstraint->throw()
164
        Koha::Exceptions::Patron::Attribute::UniqueIDConstraint->throw( attribute => $self )
165
            if $unique_count > 0;
165
            if $unique_count > 0;
166
    }
166
    }
167
167
168
- 

Return to bug 27833