Bugzilla – Attachment 10838 Details for
Bug 8418
Koha::Calendar is_holiday ignores all user data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8418 - correctly mock test data
Bug-8418---correctly-mock-test-data.patch (text/plain), 1.14 KB, created by
Dobrica Pavlinusic
on 2012-07-14 09:51:35 UTC
(
hide
)
Description:
Bug 8418 - correctly mock test data
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2012-07-14 09:51:35 UTC
Size:
1.14 KB
patch
obsolete
>From 77031f059e066229175975d8a8a45f587de40f9d Mon Sep 17 00:00:00 2001 >From: Dobrica Pavlinusic <dpavlin@rot13.org> >Date: Sat, 14 Jul 2012 11:49:08 +0200 >Subject: [PATCH] Bug 8418 - correctly mock test data > >--- > Koha/Calendar.pm | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm >index 04554c5..a7dbeea 100644 >--- a/Koha/Calendar.pm >+++ b/Koha/Calendar.pm >@@ -193,10 +193,8 @@ sub hours_between { > sub _mockinit { > my $self = shift; > $self->{weekly_closed_days} = [ 1, 0, 0, 0, 0, 0, 0 ]; # Sunday only >- $self->{day_month_closed_days} = { 6 => { 16 => 1, } }; >+ $self->{day_month_closed_days} = { 16 => { 6 => 1, } }; > my $dates = []; >- $self->{special_holidays} = >- DateTime::Set->from_datetimes( dates => $dates ); > my $special = DateTime->new( > year => 2011, > month => 6, >@@ -204,6 +202,8 @@ sub _mockinit { > time_zone => 'Europe/London', > ); > push @{$dates}, $special; >+ $self->{special_holidays} = >+ DateTime::Set->from_datetimes( dates => $dates ); > $self->{days_mode} = 'Calendar'; > return; > } >-- >1.7.2.5
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 8418
:
10769
|
10770
|
10773
|
10774
|
10810
|
10811
|
10838
|
10839
|
10840
|
11025
|
11026
|
11611
|
11624