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

(-)a/C4/Letters.pm (-2 / +4 lines)
Lines 806-813 sub _parseletter { Link Here
806
    if ( $table eq 'reserves' && $values->{'waitingdate'} ) {
806
    if ( $table eq 'reserves' && $values->{'waitingdate'} ) {
807
        my @waitingdate = split /-/, $values->{'waitingdate'};
807
        my @waitingdate = split /-/, $values->{'waitingdate'};
808
808
809
        $values->{'expirationdate'} = '';
809
        if ( $values->{expirationdate} ) {
810
        if ( C4::Context->preference('ReservesMaxPickUpDelay') ) {
810
            $values->{expirationdate} = output_pref({ dt => dt_from_string( $values->{expirationdate} ), dateonly => 1 });
811
        }
812
        elsif ( C4::Context->preference('ReservesMaxPickUpDelay') ) {
811
            my $dt = dt_from_string();
813
            my $dt = dt_from_string();
812
            $dt->add( days => C4::Context->preference('ReservesMaxPickUpDelay') );
814
            $dt->add( days => C4::Context->preference('ReservesMaxPickUpDelay') );
813
            $values->{'expirationdate'} = output_pref( { dt => $dt, dateonly => 1 } );
815
            $values->{'expirationdate'} = output_pref( { dt => $dt, dateonly => 1 } );
(-)a/C4/Reserves.pm (-1 / +1 lines)
Lines 1398-1403 sub GetReserveInfo { Link Here
1398
                   reserves.biblionumber,
1398
                   reserves.biblionumber,
1399
                   reserves.branchcode,
1399
                   reserves.branchcode,
1400
                   reserves.waitingdate,
1400
                   reserves.waitingdate,
1401
                   reserves.expirationdate,
1401
                   notificationdate,
1402
                   notificationdate,
1402
                   reminderdate,
1403
                   reminderdate,
1403
                   priority,
1404
                   priority,
1404
- 

Return to bug 12204