Bugzilla – Attachment 10619 Details for
Bug 8348
useDaysMode syspref does not apply
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
useDaysMode syspref does not apply
0001-useDaysMode-syspref-did-not-apply.patch (text/plain), 1.18 KB, created by
Koha Team University Lyon 3
on 2012-07-03 08:35:49 UTC
(
hide
)
Description:
useDaysMode syspref does not apply
Filename:
MIME Type:
Creator:
Koha Team University Lyon 3
Created:
2012-07-03 08:35:49 UTC
Size:
1.18 KB
patch
obsolete
>From 5f36ca09e35dd0282e72a8f76985f56f38959414 Mon Sep 17 00:00:00 2001 >From: Lyon3 Team <koha@univ-lyon3.fr> >Date: Tue, 3 Jul 2012 10:09:50 +0200 >Subject: [PATCH] useDaysMode syspref did not apply > >correct incorrect parameter on sql query and inverted key-value >hash (Calendar.pm) >--- > Koha/Calendar.pm | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm >index f31edf2..057bbc3 100644 >--- a/Koha/Calendar.pm >+++ b/Koha/Calendar.pm >@@ -65,7 +65,7 @@ sub _init { > } > $self->{exception_holidays} = > DateTime::Set->from_datetimes( dates => $dates ); >- $special->execute( $branch, 1 ); >+ $special->execute( $branch, 0 ); > $dates = []; > while ( my ( $day, $month, $year, $title, $description ) = > $special->fetchrow ) { >@@ -150,7 +150,7 @@ sub is_holiday { > $dt->truncate( to => 'day' ); > my $day = $dt->day; > my $month = $dt->month; >- if ( exists $self->{day_month_closed_days}->{$month}->{$day} ) { >+ if ( exists $self->{day_month_closed_days}->{$day}->{$month} ) { > return 1; > } > if ( $self->{exception_holidays}->contains($dt) ) { >-- >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 8348
: 10619