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

(-)a/Koha/Calendar.pm (-2 / +1 lines)
Lines 218-224 sub addDays { Link Here
218
                my $dow = $base_date->day_of_week;
218
                my $dow = $base_date->day_of_week;
219
                my $days = $days_duration->in_units('days');
219
                my $days = $days_duration->in_units('days');
220
                # Is it a period based on weeks
220
                # Is it a period based on weeks
221
                my $push_amt = $days_duration % 7 == 0 ?
221
                my $push_amt = $days % 7 == 0 ?
222
                    $self->get_push_amt($base_date) : 1;
222
                    $self->get_push_amt($base_date) : 1;
223
                if ( $days_duration->is_negative() ) {
223
                if ( $days_duration->is_negative() ) {
224
                    $base_date = $self->prev_open_days($base_date, $push_amt);
224
                    $base_date = $self->prev_open_days($base_date, $push_amt);
225
- 

Return to bug 15260