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

(-)a/svc/renew (-2 / +3 lines)
Lines 67-76 if ( $data->{error} && $data->{error} eq 'on_reserve' && C4::Context->preference Link Here
67
    $data->{error} = undef;
67
    $data->{error} = undef;
68
}
68
}
69
69
70
if ( $data->{renew_okay} ) {
70
if ( $data->{renew_okay} || ( $seen && $data->{error} eq 'too_unseen') ) {
71
    try{
71
    try{
72
        $date_due = AddRenewal( $borrowernumber, $itemnumber, $branchcode, $date_due, undef, undef, $seen );
72
        $date_due = AddRenewal( $borrowernumber, $itemnumber, $branchcode, $date_due, undef, undef, $seen );
73
        $data->{date_due} = output_pref( { dt => $date_due, as_due_date => 1 } );
73
        $data->{date_due} = output_pref( { dt => $date_due, as_due_date => 1 } );
74
        $data->{renew_okay} = 1;
75
        $data->{error} = undef;
74
    } catch {
76
    } catch {
75
        if ( ref($_) eq 'Koha::Exceptions::Checkout::FailedRenewal' ) {
77
        if ( ref($_) eq 'Koha::Exceptions::Checkout::FailedRenewal' ) {
76
            $data->{error} = 'renewal_failed';
78
            $data->{error} = 'renewal_failed';
77
- 

Return to bug 29051