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

(-)a/Koha/REST/V1/Patrons/Account.pm (-2 / +1 lines)
Lines 220-228 sub add_debit { Link Here
220
220
221
        my $debit = $patron->account->add_debit($data);
221
        my $debit = $patron->account->add_debit($data);
222
        $debit = Koha::Account::Debit->_new_from_dbic( $debit->{_result} );
222
        $debit = Koha::Account::Debit->_new_from_dbic( $debit->{_result} );
223
        $debit->discard_changes;
223
224
224
        $c->res->headers->location( $c->req->url->to_string . '/' . $debit->id );
225
        $c->res->headers->location( $c->req->url->to_string . '/' . $debit->id );
225
        $debit->discard_changes;
226
226
227
        return $c->render(
227
        return $c->render(
228
            status  => 201,
228
            status  => 201,
229
- 

Return to bug 37622