Bugzilla – Attachment 89386 Details for
Bug 15260
Option for extended loan with useDaysMode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15260: (follow-up) Fix misnamed variable
Bug-15260-follow-up-Fix-misnamed-variable.patch (text/plain), 1.17 KB, created by
Liz Rea
on 2019-05-06 17:45:55 UTC
(
hide
)
Description:
Bug 15260: (follow-up) Fix misnamed variable
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-05-06 17:45:55 UTC
Size:
1.17 KB
patch
obsolete
>From 226908e7718ea4bfb47720afb8365ebad340d1c4 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@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 > >Sponsored-by: Cheshire West and Chester and Cheshire East Councils >Sponsored-by: Newcastle City Council >Sponsored-by: Sefton Council > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > 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 cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15260
:
87906
|
88052
|
88053
|
88054
|
88055
|
88056
|
88057
|
88059
|
88607
|
88608
|
88609
|
88610
|
88611
|
88612
|
88613
|
89178
|
89380
|
89381
|
89382
|
89383
|
89384
|
89385
|
89386
|
89387
|
89388
|
89885
|
94880
|
94881
|
94882
|
94883
|
94884
|
94885
|
94886
|
94887
|
94888
|
94889