Bugzilla – Attachment 150477 Details for
Bug 6796
Overnight checkouts taking into account opening and closing hours
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6796: (follow-up) Fix branch_hours.day to enum and add filters
Bug-6796-follow-up-Fix-branchhoursday-to-enum-and-.patch (text/plain), 5.46 KB, created by
Aleisha Amohia
on 2023-05-01 22:32:25 UTC
(
hide
)
Description:
Bug 6796: (follow-up) Fix branch_hours.day to enum and add filters
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2023-05-01 22:32:25 UTC
Size:
5.46 KB
patch
obsolete
>From 60f655c342485f0c84646169758f906b25947811 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Mon, 1 May 2023 22:10:44 +0000 >Subject: [PATCH] Bug 6796: (follow-up) Fix branch_hours.day to enum and add > filters > >--- > ..._-_add_ConsiderLibraryHoursWhenIssuing_syspref.pl | 0 > .../bug_6796_-_add_branch_hours_table.pl | 2 +- > installer/data/mysql/kohastructure.sql | 2 +- > .../intranet-tmpl/prog/en/modules/admin/branches.tt | 12 ++++++------ > 4 files changed, 8 insertions(+), 8 deletions(-) > mode change 100644 => 100755 installer/data/mysql/atomicupdate/bug_6796_-_add_ConsiderLibraryHoursWhenIssuing_syspref.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_6796_-_add_ConsiderLibraryHoursWhenIssuing_syspref.pl b/installer/data/mysql/atomicupdate/bug_6796_-_add_ConsiderLibraryHoursWhenIssuing_syspref.pl >old mode 100644 >new mode 100755 >diff --git a/installer/data/mysql/atomicupdate/bug_6796_-_add_branch_hours_table.pl b/installer/data/mysql/atomicupdate/bug_6796_-_add_branch_hours_table.pl >index e33503257c6..f7a6a300b84 100644 >--- a/installer/data/mysql/atomicupdate/bug_6796_-_add_branch_hours_table.pl >+++ b/installer/data/mysql/atomicupdate/bug_6796_-_add_branch_hours_table.pl >@@ -11,7 +11,7 @@ return { > $dbh->do(q{ > CREATE TABLE branch_hours ( > branchcode varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, >- day int(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 0, >+ day enum('0','1','2','3','4','5','6') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0', > open_time time COLLATE utf8mb4_unicode_ci DEFAULT NULL, > close_time time COLLATE utf8mb4_unicode_ci DEFAULT NULL, > PRIMARY KEY (branchcode, day), >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index aea2a8b95f9..05df4274af8 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1570,7 +1570,7 @@ DROP TABLE IF EXISTS branch_hours; > /*!40101 SET character_set_client = utf8 */; > CREATE TABLE branch_hours ( > branchcode varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, >- day int(1) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 0, >+ day enum('0','1','2','3','4','5','6') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0', > open_time time COLLATE utf8mb4_unicode_ci DEFAULT NULL, > close_time time COLLATE utf8mb4_unicode_ci DEFAULT NULL, > PRIMARY KEY (branchcode, day), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >index 92da642d8d9..44f1befae5d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt >@@ -289,21 +289,21 @@ Libraries › Administration › Koha > [% IF opening_hours # Existing library %] > [% daycount = 0 %] > [% FOREACH hr IN opening_hours %] >- <tr id="hours_[% daycount %]"> >+ <tr id="hours_[% daycount | html %]"> > <td> > [% PROCESS dayname day=daycount %] >- <input type="hidden" value="[% daycount %]" name="day"> >+ <input type="hidden" value="[% daycount | html %]" name="day"> > </td> > <td> > [% IF hr.day == daycount && hr.open_time %] >- <input type="time" value="[% hr.open_time %]" name="open_time"> >+ <input type="time" value="[% hr.open_time | html %]" name="open_time"> > [% ELSE %] > <input type="time" value="" name="open_time"> > [% END %] > </td> > <td> > [% IF hr.day == daycount && hr.close_time %] >- <input type="time" value="[% hr.close_time %]" name="close_time"> >+ <input type="time" value="[% hr.close_time | html %]" name="close_time"> > [% ELSE %] > <input type="time" value="" name="close_time"> > [% END %] >@@ -313,10 +313,10 @@ Libraries › Administration › Koha > [% END %] > [% ELSE # New library %] > [% FOREACH daycount IN [0..6] %] >- <tr id="hours_[% day %]"> >+ <tr id="hours_[% day | html %]"> > <td> > [% PROCESS dayname day=daycount %] >- <input type="hidden" value="[% daycount %]" name="day"> >+ <input type="hidden" value="[% daycount | html %]" name="day"> > </td> > <td> > <input type="time" value="" name="open_time"> >-- >2.30.2
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 6796
:
124669
|
124670
|
124671
|
124672
|
134323
|
134324
|
134325
|
134326
|
134327
|
145669
|
145670
|
145671
|
145672
|
145673
|
146988
|
146989
|
146990
|
146991
|
146992
|
150442
|
150443
|
150444
|
150445
|
150446
|
150447
|
150448
|
150477
|
150478
|
153252
|
153253
|
153254
|
153255
|
153256
|
153257
|
153258
|
153259
|
153260
|
153261
|
153271
|
153272
|
153273
|
153274
|
153275
|
153276
|
153277
|
153278
|
153279
|
153280
|
156772
|
156773
|
156774
|
156775
|
156776
|
156777
|
156778
|
156779
|
156780
|
161970
|
161971
|
161972
|
161973
|
161974
|
161975
|
161976
|
161977
|
161978
|
161979
|
161980
|
161986
|
161987
|
161988
|
161989
|
162043
|
162044
|
162045
|
162046
|
162047
|
162048
|
162049
|
162050
|
162051
|
162052
|
162053
|
162054
|
162055
|
162056
|
162090
|
162091
|
162092
|
162093
|
162094
|
162095
|
162096
|
162097
|
162098
|
162099
|
162100
|
162101
|
162102
|
162103
|
162104
|
164511
|
164512
|
164513
|
164514
|
164515
|
164516
|
164517
|
164518
|
164538
|
164539
|
164540
|
164541
|
164542
|
164543
|
164544
|
164545
|
164546
|
164547
|
164548
|
164549
|
164550
|
164551
|
164552