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

(-)a/Koha/REST/V1/Authorities.pm (-1 / +1 lines)
Lines 169-175 sub add { Link Here
169
        }
169
        }
170
170
171
        unless ( $overrides->{any} || $overrides->{duplicate} ) {
171
        unless ( $overrides->{any} || $overrides->{duplicate} ) {
172
            my ( $duplicateauthid, $duplicateauthvalue ) = FindDuplicateAuthority( $record, $authtypecode );
172
            my ( $duplicateauthid, $duplicateauthvalue ) = C4::AuthoritiesMarc::FindDuplicateAuthority( $record, $authtypecode );
173
173
174
            return $c->render(
174
            return $c->render(
175
                status  => 409,
175
                status  => 409,
(-)a/t/db_dependent/api/v1/authorities.t (-1 / +3 lines)
Lines 159-164 subtest 'post() tests' => sub { Link Here
159
159
160
    $schema->storage->txn_begin;
160
    $schema->storage->txn_begin;
161
161
162
    my $authorities_mock = Test::MockModule->new('C4::AuthoritiesMarc');
163
    $authorities_mock->mock( 'FindDuplicateAuthority', sub { return 1234; } );
164
162
    my $patron = $builder->build_object(
165
    my $patron = $builder->build_object(
163
        {
166
        {
164
            class => 'Koha::Patrons',
167
            class => 'Koha::Patrons',
165
- 

Return to bug 31795