[Koha-bugs] [Bug 15260] Option for extended loan with useDaysMode
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 12 15:02:58 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15260
Andrew Isherwood <andrew.isherwood at ptfs-europe.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #87906|0 |1
is obsolete| |
--- Comment #2 from Andrew Isherwood <andrew.isherwood at ptfs-europe.com> ---
Comment on attachment 87906
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87906
Bug 15260: (follow-up) Fix misnamed variable
>From 12eecbfc9f52184475299caf02a8efae8e86f5ba Mon Sep 17 00:00:00 2001
>From: Andrew Isherwood <andrew.isherwood at ptfs-europe.com>
>Date: Fri, 12 Apr 2019 12:31:31 +0100
>Subject: [PATCH] Bug 15260: (follow-up) Fix misnamed variable
>
>This was causing the amount to push by to be incorrectly calculated
>---
> Koha/Calendar.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm
>index 47c1728575..932b7f1c1e 100644
>--- a/Koha/Calendar.pm
>+++ b/Koha/Calendar.pm
>@@ -218,7 +218,7 @@ sub addDays {
> my $dow = $base_date->day_of_week;
> my $days = $days_duration->in_units('days');
> # Is it a period based on weeks
>- my $push_amt = $days_duration % 7 == 0 ?
>+ my $push_amt = $days % 7 == 0 ?
> $self->get_push_amt($base_date) : 1;
> if ( $days_duration->is_negative() ) {
> $base_date = $self->prev_open_days($base_date, $push_amt);
>--
>2.11.0
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list