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

(-)a/Koha/REST/V1/Authorities.pm (-11 / +2 lines)
Lines 119-135 sub delete { Link Here
119
    }
119
    }
120
120
121
    return try {
121
    return try {
122
        my $error = DelAuthority( { authid => $authority->authid } );
122
        DelAuthority( { authid => $authority->authid } );
123
123
124
        if ($error) {
124
        return $c->render( status => 204, openapi => q{} );
125
            return $c->render(
126
                status  => 409,
127
                openapi => { error => $error }
128
            );
129
        }
130
        else {
131
            return $c->render( status => 204, openapi => "" );
132
        }
133
    }
125
    }
134
    catch {
126
    catch {
135
        $c->unhandled_exception($_);
127
        $c->unhandled_exception($_);
136
- 

Return to bug 31793