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

(-)a/Koha/REST/V1/Checkouts.pm (-3 / +2 lines)
Lines 197-210 sub delete_history { Link Here
197
        'me.borrowernumber' => $patron_id
197
        'me.borrowernumber' => $patron_id
198
    });
198
    });
199
199
200
    $patrons->anonymise_issue_history;
201
202
    unless ($patrons->count) {
200
    unless ($patrons->count) {
203
        return $c->render( status => 404, openapi => {
201
        return $c->render( status => 404, openapi => {
204
            error => "Patron doesn't exist"
202
            error => "Patron doesn't exist"
205
        });
203
        });
206
    }
204
    }
207
205
206
    $patrons->anonymise_issue_history;
207
208
    return $c->render( status => 204, openapi => "" );
208
    return $c->render( status => 204, openapi => "" );
209
}
209
}
210
210
211
- 

Return to bug 18795