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

(-)a/tools/batch_extend_due_dates.pl (-4 / +6 lines)
Lines 102-108 elsif ( $op eq 'list' ) { Link Here
102
        }
102
        }
103
    );
103
    );
104
104
105
    my @new_due_dates;
106
    my @checkouts;
105
    my @checkouts;
107
106
108
    while ( my $checkout = $checkouts->next ) {
107
    while ( my $checkout = $checkouts->next ) {
Lines 151-160 if ( $op eq 'modify' ) { Link Here
151
150
152
        # Update checkout's due date
151
        # Update checkout's due date
153
        if ( $new_hard_due_date ) {
152
        if ( $new_hard_due_date ) {
154
            $checkout->shift_due_date({ hard_due_date => $new_hard_due_date });
153
            $checkout->shift_due_date({ hard_due_date => $new_hard_due_date })
154
                     ->store
155
                     ->discard_changes;
155
        }
156
        }
156
        else {
157
        else {
157
            $checkout->shift_due_date({ days => $due_date_days });
158
            $checkout->shift_due_date({ days => $due_date_days })
159
                     ->store
160
                     ->discard_changes;
158
        }
161
        }
159
162
160
        # Update items.onloan
163
        # Update items.onloan
161
- 

Return to bug 25039